Code: Select all
return {
active = true, -- set to true to activate this script
on = {
timer = {
'Every 1 minutes'
}
},
execute = function(domoticz)
domoticz.log('rolluiken naar beneden - start', domoticz.LOG_INFO)
domoticz.devices('Rolluik studeerkamer').close()
domoticz.log('rolluiken naar beneden - eind', domoticz.LOG_INFO)
end
}
But the blinds are not moving at all...2019-12-23 16:54:00.130 Status: dzVents: Info: ------ Start internal script: Rolluiken naar beneden:, trigger: every 1 minutes
2019-12-23 16:54:00.130 Status: dzVents: Info: rolluiken naar beneden - start
2019-12-23 16:54:00.149 Status: dzVents: Debug: Processing device-adapter for Rolluik studeerkamer: Switch device adapter
2019-12-23 16:54:00.149 Status: dzVents: Debug: Constructed timed-command: Off
2019-12-23 16:54:00.150 Status: dzVents: Info: rolluiken naar beneden - eind
2019-12-23 16:54:00.150 Status: dzVents: Info: ------ Finished Rolluiken naar beneden
2019-12-23 16:54:00.150 Status: dzVents: Debug: Commands sent to Domoticz:
2019-12-23 16:54:00.150 Status: dzVents: Debug: - Rolluik studeerkamer = Off
2019-12-23 16:54:00.150 Status: dzVents: Debug: =====================================================
I've tried:
domoticz.devices('Rolluik studeerkamer').close()
domoticz.devices('Rolluik studeerkamer').open()
domoticz.devices('Rolluik studeerkamer').switchOn()
domoticz.devices('Rolluik studeerkamer').switchOff()
but none of them did send the blinds up or down.
Am I missing something?
FYI: The line
is only so I could see what was happening, it will betimer = { 'Every 1 minutes' }
'5 minutes after sunset'



