#Logbook trigger switch
1 messages · Page 1 of 1 (latest)
this bot disrupted my message
Hi there, my HA is not logging who is triggering my garage door. It only logs the door status. Can anyone help me with this one?
binary_sensor:
- platform: gpio
device_class: garage_door
name: Door Status
pin:
number: 12
inverted: true
switch:
- platform: restart
id: board_restart
name: Restart Board
icon: mdi:restart
- platform: gpio
pin: 13
id: door_relay
icon: "mdi:remote"
- platform: template
name: Trigger
id: garage_door_button
restore_mode: DISABLED
turn_on_action:
- switch.turn_on: door_relay
- delay: 500ms
- switch.turn_off: door_relay
turn_off_action:
- switch.turn_on: door_relay
- delay: 500ms
- switch.turn_off: door_relay```