Hello
i want to show different images based on conditions in one card.
This code is showing two different images based on state of the boolean, but i want to have 4 states, like:
image 1 - when opened
image 2 - when closed
image 3 - while opening
image 4 - while closing
the cover state is returning “opening” and “closing” while operation.
type: picture-entity
entity: input_boolean.curtain_closed
state_image:
'on': local/cinema_on.gif
'off': local/cinema_off.gif
// 'opening': local/cinema_opening.gif
// 'closing': local/cinema_closing.gif
tap_action:
action: call-service
service: automation.trigger
service_data:
entity_id: automation.kino_rolladenbeschattung
show_state: false
show_name: true
name: Sonnenschutz
hold_action:
action: none
Any suggestions?
Thanks