Domoticz 2022.1 build 14453
Python 3.9.2
J'ai créé ce switch issu d'un "Dummy (Does nothing, use for virtual switch only)": J'essaye de modifier le selector avec un script et impossible.
J'ai ce script (je peux pas faire plus simple
Code : Tout sélectionner
return {
on = {
timer = {
'every minute', -- causes the script to be called every minute
},
},
logging = {
level = domoticz.LOG_DEBUG,
marker = 'template',
},
execute = function(domoticz, timer)
domoticz.devices(872).switchSelector(20)
end
}Code : Tout sélectionner
2022-09-27 21:47:00.188 Status: dzVents: Info: template: ------ Start internal script: Script #1:, trigger: "every minute"
2022-09-27 21:47:00.207 Status: dzVents: Debug: template: Processing device-adapter for Radiateur Séjour: Switch device adapter
2022-09-27 21:47:00.207 Status: dzVents: Debug: template: Constructed timed-command: Set Level 20
2022-09-27 21:47:00.208 Status: dzVents: Info: template: ------ Finished Script #1
2022-09-27 21:47:00.208 Status: dzVents: !Info: template: Debug: Writing module summary to /opt/yunohost/domoticz/scripts/dzVents/module.log Modifier manuellement le niveau du switch en cliquant sur le widget marche sans problème...
Des idées de ce que je fais de travers??