ZiWave Thermostat

James Sentman james at sentman.com
Sun Dec 20 11:55:38 EST 2020


Does it really not have a “t” at the end of it’s name? I would first make sure that is correct, though I would expect that to generate a unit not found error in the log if that was the problem. Do double check first.

In which unit is this script? The master thermostat unit that has the temperature will not be called when the state changes, you need that script to be in the (State) unit. And you also have the logging of temperature sending the state which will not be the temperature but just the state. 

in the Gread Room Thermostat (State) unit I would put the script something like:


write log “The temperature is: “ & (value of “Great Room Thermostat (Current Temp)”)

set currentValue to (value of “Great Room Thermostat (State)”)

if currentValue = 0.0 then
	write log “idle”
else if currentValue = 1.0 then
	write log “heating”
else if currentValue = 2.0 then
	write log “cooling”
else if currentValue = 4.0 then
	write log “pending heat”
else
	write log “unknown thermostat state (“ & currentValue & “)”
end if


that way you’ll know that script has gotten something regardless of the value and if the value is something goofy or different than what you’d expect you’ll see that in the log as well. The only reason that I moved all the value of statements to a single set value command at the top was for readability but also to remove unnecessary verbs which all take a bit of extra time to call back into XTension and since they are going to be the same value I put it into a local variable and only ask for the value just the once.

Is there a reason that you’re not using (thisUnit) for the name of “Great Room Thermostat (State)” ? Since I expect this script to be in the On script for that unit I would use that as then typos are impossible ;) You can’t use it for the temperature as that is a different unit but still.



> On Dec 6, 2020, at 2:30 PM, Hendrik W. M. van Eeden <hvaneeden at comcast.net> wrote:
> 
> I have a wave thermostat GoControl model GC-TBZ48 that is paired on a Vera Plus and all children appears in XTension.
> I run this ON script:
> 
> write log "The temperature is: " & (value of "Great Room Thermosta (State)")
> if (value of "Great Room Thermosta (State)") = 4.0 then
> 	write log "Pending heat"
> end if
> 
> if (value of "Great Room Thermosta (State)") = 1.0 then
> 	write log "Heating"
> end if
> if (value of "Great Room Thermosta (State)") = 0.0 then
> 	write log "Idle"
> end if
> 
> The value of the Great Room Thermostat (State) changes from 0.0 to 4.0 and the label changes  idle to pending Heat respectively.  The ON script does not appear to be triggered when the table changes.
> Has anyone seen this? Or has an explanation for this?
> 

Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20201220/eb54cb16/attachment.html>


More information about the XTensionList mailing list