Trane ModeState change notification

Hello,

I trying to track how much and how long my heater runs. I’d like to create/get a notification that is sent whenever the heater turns on or off. Ideally, I’d love to have the notification have the outside temperature also.

Can anyone point me in the right direction for creating this notification? Do I need to create a virtual device or something? There doesn’t seem to be a built-in ability to trigger a notification for this.

I know I need to watch the ModeState variable from the thermostat. I’m assuming I’m going to have to use twitter or something for the notification since it appears I can’t customize the e-mail/text notification.

New to creating a custom plugin/device so any help is appreciated. I get lost easily…

Thanks.

-Aaron

Hi Aaron,

Have you been able to get a notification when your heater runs? I’m looking for a similar solution.

Thanks

Francesco

I had a T-stat in my garage that controlled exhaust fans, changed it to a Trane Z-Wave stat and it now controls a water heater in Heat mode, & the exhaust fans in Cool mode:
An email is sent when the water heater turns On or Off.

Create a timer to run every minute or so and add something like this in the Luup tab:

T-stat = 87
Water Heater = 91
@Ap15e’s SND plugin = 158

[code]if( luup.variable_get(“urn:micasaverde-com:serviceId:HVAC_OperatingState1”,“ModeState”,87) == “Heating”
and
luup.variable_get(“urn:micasaverde-com:serviceId:HVAC_OperatingState1”,“ModeState”,87) ~= " Cooling")
then if
( luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,91) == “0” )
then
luup.call_action( “urn:upnp-ap15e-com:serviceId:SND1”, “SendMail”, { subject = ‘Water Heater On’, body = ‘Scene 41’ }, 158 )

luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“1” },91)
end
elseif(luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,91) == “1”)
then
luup.call_action( “urn:upnp-ap15e-com:serviceId:SND1”, “SendMail”, { subject = ‘Water Heater Off’, body = ‘Scene 41’ }, 158 )

luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“0” },91)
end[/code]

JOD.