Here the variable "Heizmodus" in domoticz is filled with "Heizen" from another script by outer temp, while the if statement NEVER occurs true an id never get the loglines at the end.
Code: Select all
local heizpause = domoticz.variables("Heizmodus").state
local t = domoticz.time
local spirit = domoticz.devices('Stube HZG Thermostat')
local spirith = domoticz.devices('Stube HZG Heizpunkt')
local spirite = domoticz.devices('Stube HZG Ecopunkt')
if heizpause == 'Heizen' then
print('Modus Stube setzen')
domoticz.log('Hey! I am on!')
Solderbro