-
Setting for people state-text: - entity:
- person.robert
- person.mojca
- person.nata
- person.di
state_action:
- service: floorplan.text_set
service_data: '${(entity.state === "home") ? "doma" : "odsoten"}'
- service: floorplan.class_set
service_data:
class: static-temp
tap_action: null This works! But I'm not entirely sure that everything is written as it should be! Setting for people class_sett: - entity: person.di
element: person.di_img
tap_action: false
hover_action: false
state_action:
- service: floorplan.clas_set
service_data:
class: static-temp Something is wrong here and I can't figure out what! I want to set a class to an element with an id I've tried so many different combinations of floor plan settings that I'm getting confused. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Firstly spelling mistake in your second yaml….class The most important thing to take away is the |
Beta Was this translation helpful? Give feedback.
-
Starting with centering text. I have had problems getting this to stick but this is how it should work |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
As for opening other views, this is from my floorplan