Device attribute handling in webcore


#1

I have an ecobee thermostat. I would like to execute various tasks based on the status of the following attribute:

⌂ currentProgram

It shows up as an available attribute in webcore, in the same list as coolingSetPoint. But below $status.

I can use coolingSetPoint - or any of the other items listed above $status to drive actions, but not
⌂ currentProgram or any of the attributes listed below $status. I can’t even get it to report what value it contains.

How do I write a piston that would simply report the value contained in a given attribute?
How do I get it to drive tasks?

Any assistance would be appreciated.


#2

It’s much easier to test against the device attributes listed in the IDE (location -> devices -> your-ecobee-thermostat -> Current States). Depending on the DTH you’re using for the ecobee, you’ll see “currentProgram” which will take on the values of Home, Away, Sleep, etc.

It’s been a long time since I used the currentProgram() attribute listed in webCoRE (and CoRE), but I believe it took a parameter (I think :smile:) to test for … I’ll have to dig back into my old CoRE piston to find what I did there, LOL.

I’ll post an example ecobee status piston (that I use to monitor the ecobee) when I get home, tonight …


#3

In an expression, [My ecobee3:currentProgram] gives me »»» (string) EZ3 12P 3P — probably enough to perform tasks based on the output.

EZ3 12P 3P is my precooling time before the more expensive 3P to 6P rate kicks in.

@elf – the job allows webcore.co access now?


#4

Which DTH are you using?


#5

I use the free one by @storageanarchy.


#6

I’m using that DTH, but somehow it doesn’t include all those attributes.
I’ve not yet loaded his smartapps. Is it possible for a DTH to not report things absent an associated smartapp?


#7

I only use the basic handler also, none of the smartapps.


#8

How do you enable oauth for it? That might be the issue…


#9

I have Oauth for Ecobee (Connect) under My SmartApps > App Settings

Correction on my previous post: I use one smart app and it’s the Ecobee (Connect) app, none of the other ones like smart circulation etc.


#10

Here’s a piston that shows the status of the ecobee on the dashboard … it does nothing else :smile: The DEFINE section is where some of the attributes are being used … also using Barry’s Free Ecobee Suite:

webCoRE_ecobee3-status_dashboard001