Repository navigation
Events
The integration fires an espsomfy-rts_event on Home Assistant's event bus for every command a shade receives, whether it came from Home Assistant, a Somfy remote, a group or the ESPSomfy RTS web page. The event is fired once for each shade the command reached.
| Field | What it holds |
|---|---|
entity_id |
the entity id of the shade's cover |
event_key |
what triggered the event, always shadeCommand for now |
name |
the cover's name |
source |
where the command came from, see below |
remote_address |
the address ESPSomfy RTS uses for the shade |
source_address |
the address of the remote channel that sent it, or of the group |
command |
the command, see below |
timestamp |
when it was received, in seconds since 1970 |
source:
-
remote: a button was pressed on a remote -
internal: ESPSomfy RTS sent it, for Home Assistant, the web page, MQTT or a script -
group: it was sent to a group the shade is in
command: Up, Down, My, Step Up, Step Down, Prog, My+Up, My+Down, Up+Down, My+Up+Down, Sun Flag, Flag, Sensor, Toggle, Favorite or Stop.
To see the events as they arrive, open Settings → Developer tools → Events, listen to espsomfy-rts_event, and press a button on your remote.

A Somfy remote linked to a shade in ESPSomfy RTS can drive other things in Home Assistant too. This turns the living room lights off when My is pressed on the living room shade's remote:
triggers:
- trigger: event
event_type: espsomfy-rts_event
event_data:
entity_id: cover.living_room_shade
source: remote
command: My
actions:
- action: light.turn_off
target:
area_id: living_roomTo tell apart two remotes linked to the same shade, match source_address too: press a button on each, and read its address from the event in Developer tools.
A remote that isn't linked to any shade isn't heard: link it to a shade on the device's web page first.