Re: Écrit lua sur statut aspirateur
Publié : 13 déc. 2018, 21:42
Chez moi ça marche avec
à la place de otherdevices_status
Code : Tout sélectionner
otherdevices_svaluesReprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
otherdevices_svaluesMerci encore, mais je crois que ca veut vraiment pas, ca donne ca maintenant :frtoto a écrit : 13 déc. 2018, 21:42 Chez moi ça marche avec
à la place de otherdevices_statusCode : Tout sélectionner
otherdevices_svalues
Code : Tout sélectionner
2018-12-14 05:09:26.626 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_aspirateur-notification3.lua: ...z/scripts/lua/script_device_aspirateur-notification3.lua:5: attempt to call global 'otherdevices_svalues' (a table value)Code : Tout sélectionner
http://192.168.0.1:8080/json.htm?type=devices&rid=226Code : Tout sélectionner
commandArray = {}
if (otherdevices_svalues['Nestor - Status'] == 'In Error') then
commandArray['SendNotification']='Nestor#a eu un accident#2#sound##gcm'
end
return commandArray