Ecobee HVAC and TV!


#1

New here and to webcore - sorry if I’m borking everything!

Can’t get webcore to trigger piston based on status from Ecobee thermostat

2) What is the expected behaviour?
Ecobee starts cooling (noisey) and webcore would send signal to increase samsung tv volume

3) What is happening/not happening?
2 pistons - one for volume up and one for volume down again by the same amount when the HVAC turns off. The “volume down” version at least works, if I test the code, but not by device status.s

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
|9/2/2020, 10:53:11 PM +133ms|
|+0ms|╔Received event [Home].test = 1599112391133 with a delay of 1ms|
|+61ms|║RunTime Analysis CS > 17ms > PS > 35ms > PE > 8ms > CE|
|+63ms|║Runtime (36735 bytes) successfully initialized in 35ms (v0.3.110.20191009) (62ms)|
|+64ms|║╔Execution stage started|
|+78ms|║║Comparison (enum) idle is (string) cooling = false (1ms)|
|+79ms|║║Condition #2 evaluated false (11ms)|
|+80ms|║║Condition group #1 evaluated false (state did not change) (12ms)|
|+82ms|║╚Execution stage complete. (18ms)|
|+83ms|╚Event processed successfully (83ms)|

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Hello, and welcome!

The command “only when” is not a trigger, so it will not fire the piston.

The standard way to write a piston is to use an IF as a trigger… Something like:

IF Thermostat's mode changes to cool
Then
    Do cool stuff (IE: volume up)
END IF

Once you write a piston like this, you will see a lightning bolt in the left margin…
(Next to the trigger) This shows you what event will execute the piston.

Note: It also means the Test button will not work for this piston.
It requires a natural event. (IE: a mode change, in the example above)


Pro Tip:

I would recommend avoid using “only when” for a few months.
There are so many things you should get familiar with before tackling those.


#3

Sorry - I completely managed to post the wrong snapshot. I believe what you suggest is what I had that is not triggering?
Switch 6 is the Samsung tv


#4

That IF condition (acting as trigger) looks much better. :grin:
(although I would use the precise trigger: “changes to cooling”)


While troubleshooting, it helps to turn Log Level to Full.

Keep us posted…


#5

I use an ecobee thermostat to control a status light on a HomeSeer switch. Here is how I monitor the ecobee thermostat.