niceboygithub / AqaraSmartSwitchS1E

Everything about Aqara Smart Switch S1E
Apache License 2.0
123 stars 14 forks source link

User scene #4

Closed dmr1987 closed 10 months ago

dmr1987 commented 1 year ago

Please uncomment line 299 at ubus_monitor.sh. Methood scservice_perform() work great with HomeAssistant MQTT. For scene cotrol i create location for every switch, and create empty automations with action switch off all devices in this room.

After that in Aqara App i create screen with 9 buttons, and for every button set different automation.

In home assisatant i use trigger for MQTT

alias: S1E_1.Some_Action
description: ""
trigger:
  - platform: mqtt
    topic: homeassistant/binary_sensor/0x00xxxxxxxx/al_10523645/set
    payload: "ON"
condition: []
action:
  - device_id: xxxxxxxxxx
mode: single
niceboygithub commented 1 year ago

Thanks, I will enable it next release.