Métriques du dépôt
- Stars
- (960 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Device normal info Zemismart Electric WiFi Smart Roller Shade Motor Tuya Alexa Google Home Motorized Curtain Switch
Expected behavior Would like it to work. It has 3 modes - Up, Stop, Down. Proposed solution: use clkg Curtain Switch code to make it work?
Device info (please complete the following information, which can be found in log):
| Product Name | Curtain switch |
|---|---|
| Device ID | 43001313807d3a28a295 |
| Product Category | qt |
| Device Status | Online |
| Activated At | 2021-04-30 16:49:30 |
Device specifications (please complete the following information, which can be found in log):
| Product Name | Curtain switch |
|---|---|
| Device ID | 43001313807d3a28a295 |
| Product Category | qt |
| Device Status | Online |
| Activated At | 2021-04-30 16:49:30 |
Additional context It works fine on Google Home / Google Assistant natively. To get it working in HA, I hacked a nasty workaround:
- install assistant relay
- create a mock cover entity
- have it send text "close the blinds" to Assistant, which closes them
assistant_relay: url: http://192.168.31.18:3000/assistant method: POST content_type: 'application/json' payload: '{"command":"{{ command }}", "user":"Veli"}'
`cover:
- platform: cover_rf_time_based
devices:
shade:
name: shade
travelling_time_up: 29
travelling_time_down: 29
close_script_entity_id: script.close_cover_script
stop_script_entity_id: script.stop_cover_script
open_script_entity_id: script.open_cover_script
send_stop_at_ends: False #optional
...
open_cover_script: sequence: - service: input_text.set_value
target:
entity_id: input_text.assistant_relay
data:
value: open bedroom blinds
- alias: Notify - assistant_relay id: assistant_relay mode: queued max: 3 trigger: platform: state entity_id: input_text.assistant_relay action: - service: rest_command.assistant_relay data: command: '{{ states.input_text.assistant_relay.state }}' `