Interesting.
I have removed all the lump codes and just use the virtual switch as the event trigger for the scene. Will this work?I believe so.
Interesting.
I have removed all the lump codes and just use the virtual switch as the event trigger for the scene. Will this work?I believe so.
oTi@
I have noticed that my Trane also keeps re-setting to the home setting.
It is placed into ESM by a virtual switch, and “A certain pin code is entered into the Schlage lock”
The Virtual switch is still on the next day but the Trane is back in “normal”
Here is my Luup code:
local ESM=luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,53)
if (ESM == “1”) then
luup.variable_set(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,0,53)
else
luup.variable_set(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,1,53)
return false
end
return true
In the advanced setting, I only have “when all devices in the scene are properly set”
and nothing else. Should I have picked a device, from the drop down selection?
Thanks, RastusB2
Sounds like the thermostats were set back to Run mode. What was the state of the virtual switch that next day? (Assuming this is a Home/Away virtual switch, and setting it to Home would put the thermostats back in Run mode.)[/quote]
Where did you put the Luup / Is this in a separate scene triggered by the PIN code?
My Virtual Device I.D. is 53
The Virtual Device is turned on and off by a Certain Pin Code being entered in the Schlage lock.
In the Trane Event section, I chose my EMS Device #53 and then, from the drop down selection;
When a Device is turned on or off.
When I enter the Pin Code, the Virtual Device Light turns “ON” and the Trane displays “Transmit Sent” message but the Trane never enters EMS mode, nor does the Fan go into “Auto Mode”. (currently, the fan is “ON” when in the “Normal Run Mode”
I placed this Luup code in the Trane thermostat’s Luup area::
local ESM=luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,53)
if (ESM == “1”) then
luup.variable_set(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,0,53)
else
luup.variable_set(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,1,53)
return false
end
return true
[quote=“RastusB2, post:24, topic:168340”]In the Trane Event section, I chose my EMS Device #53 and then, from the drop down selection;
When a Device is turned on or off.[/quote]
OK; that sounds like the right way to go. But then instead of using code, you could just select the commands for the thermostat (mode to EMS, fan to Auto, etc.).
(The issue with the code above is that you are manipulating the virtual switch instead of the thermostat. Everything refers to device #53, your virtual switch.)
Sounds like you may have gotten past this. Let’s continue in the other thread, so we don’t have more cross posts.
OTI,
does the "Energy) button on the Trane dashboard in the UI4 ever turn green when activated like the other commands.
I’m still having touble trying to set the Thermostat to EMS remotely. Even going directly into the thermostat controls to try to set it. It doesn’t change the setting and doesn’t turn green.
Thad
Not for me. Same for the fan controls. It’s been a lingering issue I believe.
I'm still having touble trying to set the Thermostat to EMS remotely. Even going directly into the thermostat controls to try to set it. It doesn't change the setting and doesn't turn green.Hmm. Even though the status is not shown, the actual switching of the state should work. Also, you can click on the thermometer icon of the thermostat to make it switch between EMS and Normal. Does that not work for you either? What firmware version are you on?
OTI,
I am also a newbie to Vera and am installing the Trane Thermostat TZEMT400AB32MAA. I was having the same issues with setting up the “away” scene so that it would not be overwritten by the other daily scenes. I added the code you gave to tell the scenes not to run if the stat is in the “ESM” mode (as set in “away”). I then created a “return” scene without the code. That works also - but now my other daily scenes will not work even if the unit is not in the “ESM” mode (after running “return”). Here’s the code I’m using. My device I.D is 002. Not sure if I got the format correct.
return (luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,002) == “1”)
Any Advice?
Normal mode == 0, Energy mode == 1.
I have also found that the PowerSwitch1 service’s Status variable will not update if you change the ESM mode using the Thermostat’s physical buttons, at least not for me
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules