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
The Device sends the Values "tamper" and "contact". Both are boolean Values.
tamper = true means for me now "Window Angled"
contact = true means "Window Open"
if both are false means "Window closed"
Can i add a new variable to the MQTT json like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Guys, i have a Tuya TS0203 (ZD08). I soldered two switches to this device, which now shows me if my Windows have different Positions.
I do not use HomeAssistant.
Currently my Values are these:
The Device sends the Values "tamper" and "contact". Both are boolean Values.
tamper = true means for me now "Window Angled"
contact = true means "Window Open"
if both are false means "Window closed"
Can i add a new variable to the MQTT json like this:
state = e.contact == true ? "Window open" : e.tamper == true ? "Window Angled" : "Window closed"
to have this additionally in my MQTT json Message:
I copied the external definition from my z2m, but i have absolutely no idea where i could possibly put these values into.
Is this even possible and can someone point me to where i have an example for that?
Thank you in Advance
Dave
Beta Was this translation helpful? Give feedback.
All reactions