#I know I can use a senro template to

1 messages · Page 1 of 1 (latest)

short salmon
#

This is the switch I want the status displayed in HA

``switch:

  • platform: gpio
    inverted: False
    pin: 2
    name: "Tira LED cocina"
    id: rele_led_cocina
    restore_mode: ALWAYS_ON``
#

Tried with id(rele_led_cocina).state and state.rele_led_cocina to no avail

pseudo needle
#

Use states('switch.rele_led_cocina')

short salmon
#

that throws "unknown"

#

{{ states('switch.rele_led_cocina') }}

#

Developer Tools > Template