Hi there, I expanded my controller with an HC595 to control 2 covers and 4 binary lights.
The part with the covers is fine, but I can’t get the lights going, since “binary light” requests an output while with the '595 I can only use “switch”.
sn74hc595:
- id: sn74hc595_hub
data_pin: GPIO0
clock_pin: GPIO1
latch_pin: GPIO2
## oe_pin: GPIOXX
sr_count: 1
output:
- platform: gpio
pin: GPIO20
id: test_output
inverted: false
- platform: gpio
pin: GPIO21
id: test_output21
inverted: false
# Individual outputs
switch:
- platform: gpio
name: "SN74HC595 Pin #0"
id: r1e
pin:
sn74hc595: sn74hc595_hub
# Use pin number 0
number: 0
inverted: false
- platform: gpio
name: "SN74HC595 Pin #1"
id: r1d
pin:
sn74hc595: sn74hc595_hub
# Use pin number 0
number: 1
inverted: false
cover:
- platform: time_based
id: roll_test
open_action:
then:
- switch.turn_on: r1d
- switch.turn_on: r1e
open_duration: 10s
close_action:
then:
- switch.turn_on: r1d
- switch.turn_on: r1e
close_duration: 10s
stop_action:
then:
- switch.turn_off: r1e
- switch.turn_off: r1d
light:
- platform: binary
id: light_inside
output: test_output
- platform: binary
id: light_outside
output:
sn74hc595: sn74hc595_hub
# Use pin number 5
number: 5
Any hints how I can get my lights going?