Hi All,
I really hope you can help me out here.
I have setup 2 esp8266’s to use with 3 Somfy IO remote and to control my 3 screens
This is actually working well. but when i try to group them, NOTHING is working and i start to doubt my initial setup. to give you an idea these are my two configs:
esphome:
name: screen-3
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "xxxxxxxxxxxxxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Screen-3 Fallback Hotspot"
password: "XXXXXXXXXXXXXX"
captive_portal:
#Webportal
web_server:
port: 80
switch:
#Restart
- platform: restart
name: "Somfy Screen-3 restart"
#Somfy Screen 3
- platform: gpio
pin: D1
id: relay8
name: "Somfy 3 remote Up"
inverted: true
- platform: gpio
pin: D2
id: relay9
name: "Somfy 3 remote Stop"
inverted: true
- platform: gpio
pin: D3
id: relay10
name: "Somfy 3 remote Down"
inverted: true
cover:
- platform: template
name: Screen-3
device_class: shutter
close_action:
- switch.turn_on: relay10
- delay: 500ms
- switch.turn_off: relay10
stop_action:
- switch.turn_on: relay9
- delay: 500ms
- switch.turn_off: relay9
open_action:
- switch.turn_on: relay8
- delay: 500ms
- switch.turn_off: relay8
assumed_state: true
optimistic: true
and
esphome:
name: screens-1-2
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "xxxxxxxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Screens-1-2 Fallback Hotspot"
password: "xxxxxxxxxxx"
captive_portal:
#Webportal
web_server:
port: 80
switch:
#Restart
- platform: restart
name: "Somfy restart"
#Somfy Screen 1
- platform: gpio
pin: D1
id: relay1
name: "Somfy 1 remote Up"
inverted: true
- platform: gpio
pin: D2
id: relay2
name: "Somfy 1 remote Stop"
inverted: true
- platform: gpio
pin: D3
id: relay3
name: "Somfy 1 remote Down"
inverted: true
- platform: gpio
pin: D4
id: relay4
name: "Somfy 1 remote Selector"
inverted: true
#Somfy Screen 2
- platform: gpio
pin: D6
id: relay5
name: "Somfy 2 remote Down"
inverted: true
- platform: gpio
pin: D7
id: relay6
name: "Somfy 2 remote Stop"
inverted: true
- platform: gpio
pin: D8
id: relay7
name: "Somfy 2 remote Up"
inverted: true
cover:
- platform: template
name: Screen-1
device_class: shutter
close_action:
- switch.turn_on: relay3
- delay: 500ms
- switch.turn_off: relay3
stop_action:
- switch.turn_on: relay2
- delay: 500ms
- switch.turn_off: relay2
open_action:
- switch.turn_on: relay1
- delay: 500ms
- switch.turn_off: relay1
assumed_state: true
optimistic: true
- platform: template
name: Screen-2
device_class: shutter
close_action:
- switch.turn_on: relay5
- delay: 500ms
- switch.turn_off: relay5
stop_action:
- switch.turn_on: relay6
- delay: 500ms
- switch.turn_off: relay6
open_action:
- switch.turn_on: relay7
- delay: 500ms
- switch.turn_off: relay7
assumed_state: true
optimistic: true
there should be a way to make it possible to control all screens to go up, stop or go down?
hope you can help me out here.
thnx in advance!