*** SPAM *** weird script behavior
Philippe SCHMUCK
philippe-schmuck at orange.fr
Wed Feb 5 04:50:06 EST 2020
Chuck,
There is one line that seems to be wrong :
if (status of "Ceiling fan - TV") is not 33 then
Shoud be
if (value of "Ceiling fan - TV") is not 33 then
Philippe
> Message du 05/02/20 01:38
> De : "Chuck"
> A : "XTension"
> Copie à :
> Objet : *** SPAM *** weird script behavior
>
>I have a script that runs when the furnace turns on. It opens vents as needed and turns on ceiling fans. Sometimes it works just fine and other times it give me this error.
Feb 4, 2020 4:26:57 PM Executing global script: HVAC script
Feb 4, 2020 4:26:57 PM HVAC script has run
Feb 4, 2020 4:26:57 PM Script Error from "HVAC script" message: -1700: Can’t make true into type number, date or text.
I have broken down the script into several different parts and I will get this error on different parts and there is no consistency to the error. I have looked at all the code and can’t find any issues.
Maybe some fresh eyes can see a problem. It seems to have more problems when the furnace is running although I have no idea why that would be an issue.
The ceiling fans all respond as expected. The vents don’t respond as expected, except the ceiling fan in the TV room and I can’t figure out why that vent works and others don’t.
Chuck
write log "HVAC script has run"
--- ceiling fans
if (status of " Winter") is true then
if (status of "Thermostat (State)") is true then
if (value of "Ceiling fan - Happyroom") is less than 100 then
brighten "Ceiling fan - Happyroom" to 100
end if
if (value of "Ceiling fan - LR") is less than 100 then
brighten "Ceiling fan - LR" to 100
end if
if (value of "Ceiling fan - TV") is less than 100 then
brighten "Ceiling fan - TV" to 100
end if
end if
else
if (status of "Thermostat (State)") is false then
if (status of "Ceiling fan - Happyroom") is true then
turnoff "Ceiling fan - Happyroom"
end if
if (status of "Ceiling fan - LR") is true then
turnoff "Ceiling fan - LR"
end if
if (value of "Temp - TV room") is greater than 70 then
if (value of "Ceiling fan - TV") is not equal to 66 then
brighten "Ceiling fan - TV" to 66
else
if (value of "Ceiling fan - TV") is not equal to 33 then
brighten "Ceiling fan - TV" to 33
end if
end if
end if
end if
end if
------------------------------------------------------------ vents
if (status of " Winter") is true then
if (status of "Thermostat (State)") is true then
--- vents TV room
if (value of "Temp - TV room") is less than (value of "Set temp - TV room") then
if (status of "Vent - TV ceiling") is false then
turnon "Vent - TV ceiling"
end if
if (status of "Vent - TV room") is less than 100 then
brighten "Vent - TV room" to 100
end if
else
if (status of "Vent - TV ceiling") is true then
turnoff "Vent - TV ceiling"
end if
if (status of "Vent - TV room") is true then
turnoff "Vent - TV room"
end if
end if
--- vent GB
if (value of "XTension Temp sensor GB") is less than (value of "Set temp - GB") then
if (status of "Vent - GB") is false then
turnon "Vent - GB"
end if
else
if (status of "Vent - GB") is true then
turnoff "Vent - GB"
end if
end if
--- vent basement bathroom
if (value of "XTension Temp Sensor Bsmt bathroom") is less than (value of "Set temp - Bsmt bathroom") then
if (status of "Vent - Bsmt bathroom") is false then
turnon "Vent - Bsmt bathroom"
end if
else
if (status of "Vent _ Bsmt bathrom") is true then
turnoff "Vent - Bsmt bathroom"
end if
end if
--- vent bathroom
if (value of "Temp - bathroom") is less than (value of "Set temp - Bathroom") then
if (status of "Vent - Bathroom") is true then
turnoff "Vent - Bathroom"
end if
else
if (status of "Vent - Bathroom") is false then
turnon "Vent - Bathroom"
end if
end if
end if
end if
---------------------------------------------- ceiling fans with furnace off
--- celiing fan Happyroom
if (status of " Winter") is true then
if (status of "Thermostat (State)") is false then
if (status of "Ceiling fan - Happyroom") is true then
turnoff "Ceiling fan - Happyroom"
end if
end if
end if
--- ceiling fan TV room
if (status of " Winter") is true then
if (status of "Thermostat (State)") is false then
if (status of "Ceiling fan - TV") is not 33 then
dim "Ceiling fan - TV" to 33
end if
end if
end if
--- ceiling fan LR
if (status of " Winter") is true then
if (status of "Thermostat (State)") is false then
if (status of "Ceiling fan - LR") is true then
turnoff "Ceiling fan - LR"
end if
end if
end if
_______________________________________________
XTensionList mailing list
XTensionList at machomeautomation.com
http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20200205/7f67f41a/attachment.html>
More information about the XTensionList
mailing list