https://github.com/openshwprojects/OpenBK7231T_App
https://templates.blakadder.com/WF-CS01_EU.html
https://developer.tuya.com/en/docs/iot/wb3s-module-datasheet?id=K9dx20n6hz5n4
https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
https://www.elektroda.com/rtvforum/viewtopic.php?p=20433363#20433363
//Channel 0 ==> opening
//Channel 1 ==> stop
//Channel 2 ==> closing
//Channel 3 ==> Color Blue (night Mode)
//Channel 4 ==> value_template (open / closed)
//blue led on
SetStartValue 3 1
// interlock relais
addChangeHandler Channel0 == 1 SetChannel 2 0
addChangeHandler Channel2 == 1 SetChannel 0 0
//cancel button
addChangeHandler Channel1 == 1 SetChannel 0 0
addChangeHandler Channel1 == 1 SetChannel 2 0
//toggle night led mode
addEventHandler OnHold 10 ToggleChannel 3
//auto cancel relais after delai 34s
addChangeHandler Channel0 == 1 addRepeatingEventID 34 1 910 backlog SetChannel 0 0;SetChannel 4 1;
addChangeHandler Channel2 == 1 addRepeatingEventID 34 1 912 backlog SetChannel 2 0;SetChannel 4 0;
//auto cancel cancel button after 5s
addChangeHandler Channel1 == 1 addRepeatingEventID 5 1 911 SetChannel 1 0
//auto cancel cancel relai
addChangeHandler Channel1 == 1 cancelRepeatingEvent 910
addChangeHandler Channel1 == 1 cancelRepeatingEvent 912
https://community.home-assistant.io/t/template-cover-for-garage-door/241763/26
garden:
unique_id: template_cov_gardene
device_class: shutter
friendly_name: "Cover Garden"
open_cover:
- service: switch.turn_on
target:
entity_id: switch.obk61c3f99d_0
close_cover:
- service: switch.turn_on
target:
entity_id: switch.obk61c3f99d_2
stop_cover:
service: switch.turn_on
target:
entity_id: switch.obk61c3f99d_1
value_template: >-
{% if is_state('switch.cover_garden_4', 'on') %}
open
{% else %}
closed
{% endif %}