I’m trying to get my first automation to work, with a couple of simple Raspberry Pi GPIO operations.
Here is my device configuration:
switch:
- platform: rpi_gpio
ports:
25: GarageDoorRelay
binary_sensor:
- platform: rpi_gpio
ports:
24: GarageDoorSensor
I don’t see these showing up under “Developer tools->States->Current entities”. Does that mean there’s something wrong with the device configuration? The configuration validates successfully with no errors in the log.
To try and make something happen, I created a dummy automation. However, when I trigger it (manually), I get this error in the log: WARNING (MainThread) [homeassistant.core] Unable to find service switch/turn_on. Does that mean it’s a problem with my entity id?
automation:
- alias: Open or Close garage door
trigger:
platform: numeric_state
entity_id: sensor.random_sensor
above: 10
action:
service: switch.turn_on
entity_id: switch.GarageDoorRelay
Thanks!!