You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
monitor the status of the door lock in a python events script
if you manually change the lock status to Unlocked by any way (clicking on it, api call, etc.) you get the proper data with DE.Devices["devicename"].n_value_string and in the other places (json, #/LightSwitches)
though if you use the dummy switch, it changes the lock status to Unlocked via the slave link (it ok visually in #/LightSwitches and on the json call /json.htm?type=command¶m=getdevices&rid=IDX), but not in DE.Devices["devicename"].n_value_string which keep the "Locked" status
it seems Unlocked to Locked works properly in both scenario.
Simplified testing script used (Python, Trigger = All) :
import DomoticzEvents as DE
garage_is_open = DE.Devices["Status Garage"].n_value_string
DE.Log(f"garage_is_open = {garage_is_open}")
The text was updated successfully, but these errors were encountered:
Oh, that was a remnent of an old setup I had. I removed it since the bug report.
So right now it's not really a bother to me, but I though a bug report would be interesting anyway in case someone stumble onto something similar. Or if it can help the devs.
Up to date Domoticz Dockerized (15512) :
Simplified testing script used (Python, Trigger = All) :
import DomoticzEvents as DE
garage_is_open = DE.Devices["Status Garage"].n_value_string
DE.Log(f"garage_is_open = {garage_is_open}")
The text was updated successfully, but these errors were encountered: