Control up to 32 of your somfy shades in Home Assistant and set their position using an ESP32 and an inexpensive CC1101 tranceiver module. You may also define up to 16 group shades that will allow you to move multiple covers at once.
This fork is based on rstrouse/ESPSomfy-RTS-HA and is distributed under the Unlicense. Report issues with this fork in its issue tracker.
This integration requires hardware that uses an ESP32 microcontroller and a CC1101 transceiver. Setup for this controller can be found at the ESPSomfy RTS hardware repositiory. You must have one of these inexpensive radios configured for your shades.
In HACS, open Custom repositories, add https://github.com/waterfietser/ESPSomfy-RTS-HA as an Integration, and download the latest release. Restart Home Assistant after the download. See the HACS custom repository instructions.
As an alternative you may install it manually by copying the contents of the custom_components folder to the config/custom_components directory of your Home Assistant installation.
- Create a Home Assistant backup and add this fork as a custom repository in HACS.
- In HACS, open the installed
rstrouse/ESPSomfy-RTS-HArepository and choose Remove to remove its downloaded files. Keep the existing ESPSomfy integration entry under Settings → Devices & services. If HACS asks to delete that entry or its devices and entities, cancel. - Download the release from
waterfietser/ESPSomfy-RTS-HAbefore restarting Home Assistant. Both repositories usecustom_components/espsomfy_rts, so keep only the fork installed in HACS to avoid updates overwriting its files. - Restart Home Assistant and verify that the existing integration loads and that the shades appear as separate devices.
Once installed, ESPSomfy-RTS-HA will automatically detect any radio devices on your local network. Just browse to Home Assistant's Settings → Devices & Services and your ESPSomfy-RTS device will show up as available to configure.
After you have installed the plugin, you will be notified when there is a new version of the plugin available. As of v2.2.1 of the ESPSomfy RTS firmware you can also update your devices remotely using the update entity included in the plugin. It will notify you when there is a new version to install.
Each shade has its own Home Assistant device with its cover, sensors, and switches where available. Groups and bridge controls such as reboot and backup remain on the controller device.
Existing shade entities move to the new devices when the integration successfully loads the controller configuration. They keep their entity IDs and inherit the area from the shade device. If the device has no area yet, it uses the cover's area or, if the cover has no area, the first assigned area from its sensors and switches. Review automations that target the controller by device ID for shade actions, such as toggling a shade switch. Select the new shade device or target the existing entity directly.
Once configured you will be able to open, close, and set the position of your shades using home assistant. The integration will monitor the position of the shade regardless of how it was opened or closed. This includes opening or closing it using a Telis remote. Shades can be added to your dashboards and automated with Home Assistant services through automations.
There are a number of automation services available. You can find these in the Services wiki.
The integration emits events on the Home Assistant event bus for all commands whether they have originated in Home Assistant, a remote control, or the ESPSomfy RTS web interface. These events can be captured using the espsomfy-rts_event type.
The data payload for the event includes:
entity_id: The entitiy id in home assistant for the target coverevent_key: The event that triggered this event (for now this is always shadeCommand)name: The name assigned to the entitysource: The originator of the command. This will be one of the followingremote: The user pressed a button on a remoteinternal: The command originated from ESPSomfy RTSgroup: The command was part of a group command
remote_address: The address defined for the ESPSomfy RTS motorsource_address: The address of the source device. If this is a remote it will be the address of the remote channel. If it is part of a group request it will be the address of the group.command: This will be one of the following commandsUp- An up command was issuedDown- A down command was issuedMy- A my/stop command was issuedStepUp- A step up command was issuedStepDown- A step down command was issuedProg- The prog button was pressedMy+Up- A combination of the my and up button was pressed at the same timeMy+Down- A combination of the my and down button was pressed at the same timeUp+Down- The up and down buttons were pressed at the same timeMy+Up+Down- The my, up, and down buttons were all pressed at the same time


