Can someone help with a Curtain json that utilises received UART commands to change state? #1702
tonysprenk
started this conversation in
MEPLHAA Scripts
Replies: 1 comment
-
i figured it out in your sample "v" can't be HEX it always will be number so you need to put your hex in PT and then see what number it prints out and you need to have 1 ES per pattern |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a curtain motor that uses a esp8266 as wel as a secondary MCU. The two chips communicate through UART commands. The esp8266 sends commands to the secondary MCU like “open curtain” and the secondary MCU sends messages to the esp8266 like “the curtain is opening”. The curtains have a function where you can pull them lightly to have the curtains open or close. When this happens the secondary MCU sends a message to the esp8266 saying “the curtain was pulled, I am now opening/closing”. I’m trying to figure out how I can make a json where if I pull the curtain the open or close action is initiated so that the status in the home app is updated. This is what I have so far:
original json:
Then I realised I don’t need the wild card actions for the percentages (yet) and I started playing with wildcard actions for the received UART commands:
and then I thought maybe I should use service notifications so I can up with this:
None of the above json’s are having the secured effect. If anyone could point me in the right direction it would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions