Repository navigation
Entities
Home Assistant creates one device for each ESPSomfy RTS device, and these entities on it.
Each shade is a cover. You can open it, close it, stop it and set its position. Shades with tilt also get open, close and set position for their slats.
The shade type set on the device picks the cover's device class, and with it the icon:
| Shade type on the device | Device class | Notes |
|---|---|---|
| Roller Shade | shade | |
| Blind | blind | |
| Drapery (left, right, center) | curtain | |
| Awning | awning | fully extended is open |
| Shutter | shutter | |
| Garage (1-button) | garage | one button: stop only, each press moves, stops or reverses it |
| Garage (3-button) | garage | |
| Gate (left, center, right) | gate | |
| Gate (1-button left, center, right) | gate | open and close only |
| Dry Contact (1-button, 2-button) | a switch, not a cover |
Position follows Home Assistant's convention: 100% is open and 0% is closed, whatever the shade's own setting.
Each shade cover has these extra attributes, which you can read in templates and conditions:
-
remote_address: the address ESPSomfy RTS uses for the shade -
last_cmd: the last command the shade received -
cmd_source,cmd_address: where it came from, assourceandsource_addressin the event -
cmd_fired: when it was received -
target,tilt_target: where the shade and its slats are moving to -
my_pos,my_tilt_pos: the favorite (My) positions,-1when none is set
target, tilt_target, my_pos and my_tilt_pos are on the device's own scale, where 0 is open and 100 closed (unless the shade's position is flipped).
Each group is a cover that controls its shades together. Its position is worked out from its shades' positions, as a Home Assistant cover group does.
A shade of type Dry Contact is a switch: on is 100% and off is 0%.
For a shade or group whose motor has a sun sensor:
- a switch turns the sun sensor on and off (the motor's sun flag);
- a binary sensor shows whether the motor was told it is sunny;
- a binary sensor shows whether the motor was told it is windy.
An awning without a sun sensor still gets the windy binary sensor.
To tell the motors it is sunny or windy, call set_sunny and set_windy.
| Entity | What it is |
|---|---|
| Reboot ESP Device | a button that reboots the device |
| Backup ESPSomfy RTS | a button that saves a backup of the device into your Home Assistant config directory, see backup
|
| Firmware Update | the installed firmware version. From firmware 4.0.0 it can't install updates; from integration 3.0.4 it shows when a newer release is out on GitHub, with its release notes. See Upgrading to firmware 4.0.0. |
These are under Diagnostic on the device's page.
| Sensor | What it shows |
|---|---|
| Hostname | the device's hostname |
| IP Address | the device's IP address |
| Chip Type | the ESP32 model |
| Connection |
Wifi or Ethernet
|
| Wifi SSID, Wifi Channel, Wifi Strength | the WiFi network, on WiFi |
| Connection Speed, Full Duplex | the link, on Ethernet |
| Free Memory, Max Memory, Min Memory | free heap now, the largest free block, and the least free since boot |
| Loop Rate, Loop Max Time | how often the device's main loop runs, and its longest run |
The memory and loop sensors are mostly of use when reporting a problem with the device.