Repository navigation
Services
The integration adds these actions (services) under espsomfy_rts. All of them except reboot and backup act on ESPSomfy RTS covers. Home Assistant's own cover actions (cover.open_cover, cover.set_cover_position and the rest) work on the covers too.
Positions are % open: 100 is open and 0 is closed.
| Action | Fields | Does |
|---|---|---|
espsomfy_rts.open_shade |
opens the shade fully | |
espsomfy_rts.close_shade |
closes the shade fully | |
espsomfy_rts.stop_shade |
stops the shade where it is | |
espsomfy_rts.set_shade_position |
position 0-100 |
moves the shade to this position |
espsomfy_rts.tilt_open |
opens the slats | |
espsomfy_rts.tilt_close |
closes the slats | |
espsomfy_rts.set_tilt_position |
tilt_position 0-100 |
moves the slats to this position |
action: espsomfy_rts.set_shade_position
target:
entity_id: cover.living_room_shade
data:
position: 40ESPSomfy RTS doesn't hear from the motor where it is: it works the position out from the commands it sends and hears, and the shade's travel time. When something else knows better, tell it, and nothing moves.
| Action | Fields | Does |
|---|---|---|
espsomfy_rts.set_current_position |
position 0-100 |
sets where the shade is thought to be |
espsomfy_rts.set_current_tilt_position |
tilt_position 0-100 |
the same for the slats |
For instance, with a contact sensor on a garage door:
triggers:
- trigger: state
entity_id: binary_sensor.garage_door_contact
to: "off"
actions:
- action: espsomfy_rts.set_current_position
target:
entity_id: cover.garage_door
data:
position: 0These send the frames a Somfy Sunis or Eolis sensor would, so a weather station or any other sensor in Home Assistant can act as one.
| Action | Fields | Does |
|---|---|---|
espsomfy_rts.set_sunny |
sunny true/false |
tells the motor whether it is sunny |
espsomfy_rts.set_windy |
windy true/false |
tells the motor whether it is windy |
Most motors retract when told it is windy, and stay retracted until at least 2 minutes after the first calm message. When told it is sunny they extend after 2 minutes, and retract 20 minutes after it stops being sunny. They act on sun only while the sun flag is on: use the shade's sun switch.
triggers:
- trigger: numeric_state
entity_id: sensor.wind_speed
above: 40
actions:
- action: espsomfy_rts.set_windy
target:
entity_id: cover.terrace_awning
data:
windy: trueSend windy: false again once it has calmed down.
| Action | Fields | Does |
|---|---|---|
espsomfy_rts.send_command |
command, optional repeat 0-50 |
sends one of Up, My, Down, Toggle, Prog, UpDown, MyUp, MyDown, MyUpDown, StepUp, StepDown, Flag, SunFlag, Favorite, Stop
|
espsomfy_rts.send_step_command |
direction Up/Down, step_size 1-127, optional repeat 0-50 |
sends a step of this size, as the thumbwheel on 80-bit remotes does |
repeat sends the frame that many more times, which is how a long press works. To make a motor learn a remote, hold Prog:
action: espsomfy_rts.send_command
target:
entity_id: cover.living_room_shade
data:
command: Prog
repeat: 40Favorite, Stop and the step commands only work on 80-bit motors that support them.
These act on the device's buttons, so target one of its button entities.
| Action | Does |
|---|---|
espsomfy_rts.reboot |
reboots the device |
espsomfy_rts.backup |
saves a backup of the device to ESPSomfyRTS_<serverId>/<date and time>.backup in your Home Assistant config directory |
A backup holds the shades, groups, rolling codes and settings. Restore it from the device's web page if the device ever needs flashing again. To take one every week:
triggers:
- trigger: time
at: "03:00:00"
conditions:
- condition: time
weekday: sun
actions:
- action: espsomfy_rts.backup
target:
entity_id: button.espsomfyrts_backup_espsomfy_rtsYour entity id may differ: find it on the device's page.