Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swoboda1337/somfy-esphome
ESPHome Somfy Remote
https://github.com/swoboda1337/somfy-esphome
esp32 esphome esphome-component somfy
Last synced: 16 days ago
JSON representation
ESPHome Somfy Remote
- Host: GitHub
- URL: https://github.com/swoboda1337/somfy-esphome
- Owner: swoboda1337
- License: apache-2.0
- Created: 2024-12-06T14:33:09.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2024-12-16T03:34:58.000Z (18 days ago)
- Last Synced: 2024-12-16T04:27:54.196Z (18 days ago)
- Topics: esp32, esphome, esphome-component, somfy
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ESPHome Somfy remote component based off of https://github.com/Legion2/Somfy_Remote_Lib/
Commands are: MY, UP, MYUP, DOWN, MYDOWN, UPDOWN, PROG, SUNFLAG, FLAG. Address should be a random 24 bit (or 6 hex digit) number. Can create any number of remotes, buttons or covers.
The RF board needs to use 433.42 MHz not 433.92 MHz. There are two RFs CC1101 https://github.com/esphome/esphome/pull/6300 and SX127x https://github.com/esphome/esphome/pull/7490 that will work. They are currently being reviewed, but are usable, see the links for more info.
Example yaml for CC1101 (update pins for your board):
external_components:
- source: github://pr#6300
components: [ cc1101 ]spi:
clk_pin: GPIO18
miso_pin: GPIO19
mosi_pin: GPIO23cc1101:
id: cc1101_id
cs_pin: GPIO5
bandwidth: 200
frequency: 433420remote_receiver:
pin: GPIO12
filter: 200us
idle: 6000usremote_transmitter:
pin: GPIO13
carrier_duty_percent: 100%
on_transmit:
then:
- cc1101.begin_tx: cc1101_id
on_complete:
then:
- cc1101.end_tx: cc1101_idExample yaml for SX127x (update pins for your board):
external_components:
- source: github://pr#7770
components: [ remote_base, remote_receiver, remote_transmitter, esp32_rmt ]
- source: github://pr#7490
components: [ sx127x ]spi:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19sx127x:
id: sx127x_id
nss_pin: GPIO18
rst_pin: GPIO23
frequency: 433420000
modulation: OOK
rx_start: false
pa_pin: BOOST
pa_power: 17remote_receiver:
pin:
number: GPIO32
allow_other_uses: true
filter: 200us
idle: 6000usremote_transmitter:
pin:
number: GPIO32
allow_other_uses: true
one_wire: true
carrier_duty_percent: 100%
on_transmit:
then:
- sx127x.set_mode_tx: sx127x_id
on_complete:
then:
- sx127x.set_mode_rx: sx127x_idExample yaml for Somfy:
external_components:
- source:
type: git
url: https://github.com/swoboda1337/somfy-esphome
ref: main
refresh: 5minsomfy:
- address: 0x111111
id: remote_1binary_sensor:
- platform: somfy
address: 0x222222
sunny:
name: "Sunny"
windy:
name: "Windy"button:
- platform: template
name: "Somfy PROG"
on_press:
then:
- somfy.send_command:
id: remote_1
command: PROG
repeat: 1cover:
- platform: template
name: "Somfy Cover"
open_action:
- somfy.send_command:
id: remote_1
command: DOWN
repeat: 1
close_action:
- somfy.send_command:
id: remote_1
command: UP
repeat: 1
optimistic: true