I have a lovelace card (code below) intended to allow the power socket to be controlled by my timer to be selected from a list using an input_select field. I want to also show the state of the selected socket using markdown but not having any luck. Referencing input_select.power_sockets as I do in example returns ‘unknown’. Is what I’m trying to do possible?
type: entities
entities:
- entity: sensor.wifikit_timer
type: custom:multiple-entity-row
name: Timer
secondary_info:
attribute: time
entities:
- attribute: mode
name: Mode
- attribute: duration
name: Durn
- attribute: endtime
name: End
- type: custom:hui-markdown-card
content: >-
Select the socket to be controlled by the timer
- entity: input_select.power_sockets
name: Power socket to be controlled
- type: custom:hui-markdown-card
content: >-
The Power Socket is currently **{{states("input_select.power_socket")}}**
title: Wifi Timer
This is the configuration for the input_select
power_sockets:
name: Power Socket
options:
- switch_innr_socket_1_on_off
- switch_innr_socket_2_on_off
- switch.sonoff_socket_1
- switch.sonoff_socket_2
- switch.tasmota