Skip to content

Display multiple entity states #466

Closed Answered by OzGav
Trzinka asked this question in Q&A
Oct 4, 2024 · 5 comments · 7 replies
Discussion options

You must be logged in to vote

Yes no where are you checking for the state of partially_open in fact I don't see reference to binary_sensor.so_sp in your fp.yaml

Given you said this

The idea is to show an image (element: window.so_sp)
and an outer line (element: binary_sensor.so_sp) when the window is open
and a different outer line (element: sensor.so_sp_st) when the window is partially open.
When the window is closed it does not show anything.

I would expect something like:

- entity: sensor.so_sp_st
  element: window.so_sp
  state_action:
    service: floorplan.class_set
    service_data:
      class: '${(entity.state === "fully_closed") ? "closed" : "open"}'

- entity: sensor.so_sp_st
  element: binary_sensor.so_s…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@OzGav
Comment options

@Trzinka
Comment options

@Trzinka
Comment options

Comment options

You must be logged in to vote
4 replies
@Trzinka
Comment options

@OzGav
Comment options

Answer selected by Trzinka
@Trzinka
Comment options

@Trzinka
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants