Hello to the community,
I have an issue, by combining momentary switches and interlock feature.
Momentary switches work individually like a charm (on => 1000ms delay => off)
When using interlock, momentary switches are triggered sequentially as expected, but duration is very quick (100ms ? 200 ms ?) instead of awaited 1000ms.
Is this a known issue ? Should I adopt another approach ?
Here is more detail about my project :
I want to manage 8 roller shutters with ESPHome using the dry contacts of the remote controls.
So I used the “cover” component with 24 gpio “switch” (8 remote controls x 3 buttons)
Orders must never be sent at the same time, but sequentially.
Each command must last about 750ms to be correctly taken into account by rolling shutters (I use 1000ms)
Here is the cover YAML for one remote control :
cover:
- platform: time_based
name: "Salon Est"
#
open_action:
- switch.turn_on: salon_est_up
- delay: 1s
- switch.turn_off: salon_est_up
open_duration: 28s
#
stop_action:
- switch.turn_on: salon_est_stop
- delay: 1s
- switch.turn_off: salon_est_stop
#
close_action:
- switch.turn_on: salon_est_down
- delay: 1s
- switch.turn_off: salon_est_down
close_duration: 28s
And the linked switch (ou can see that interlock targets all switches) :
switch:
#
# Salon Est
#
- platform: gpio
name: "Salon Est - Monter (contact)"
id: salon_est_up
internal: true
interlock: &interlock_group [salon_est_up, salon_est_stop, salon_est_down, salon_sud_est_up, salon_sud_est_stop, salon_sud_est_down,salon_sud_ouest_up, salon_sud_ouest_stop, salon_sud_ouest_down, cuisine_up, cuisine_stop, cuisine_down, bureau_up, bureau_stop, bureau_down, tictac_up, tictac_stop, tictac_down, dialyse_up, dialyse_stop, dialyse_down, chambre_up, chambre_stop, chambre_down]
pin:
pcf8574: pcf8574_1_hub
number: 3
mode: OUTPUT
inverted: False
- platform: gpio
name: "Salon Est - Stopper (contact)"
id: salon_est_stop
internal: true
interlock: *interlock_group
pin:
pcf8574: pcf8574_1_hub
number: 2
mode: OUTPUT
inverted: False
- platform: gpio
name: "Salon Est - Descendre (contact)"
id: salon_est_down
internal: true
interlock: *interlock_group
pin:
pcf8574: pcf8574_1_hub
number: 0
mode: OUTPUT
inverted: False
Thank you for your help.