Hello.
I am using the ‘semanticHomeMenu_Scenes’ widget by hmerk, but I would like to change the colour of the border for the scene card that has been pressed.
The widget contains the following prop settings as created by hmerk that I would like to use:
sceneUID
colorScheme
I have created the following item that has the ‘state’ set when activating scenes:
home_status
One of the states I set it to is ‘scene_im_home’
Here is the yaml statement I added to the widget with an expression that will set the border of the card to blue when home_status == “scene_im_home”, otherwise set the border to black.
--f7-card-outline-border-color: "=items.home_status.state == 'scene_im_home' ? 'blue' : 'black'"
What I would like to do is use the props to evaluate the sceneUID with home_status and set the border colour to colorScheme, however it does not work.
--f7-card-outline-border-color: "=items.home_status.state == =props.sceneUID ? =props.colorScheme : 'black'"
Any suggestions? Or is this even possible to use the prop variables this way in an expression?
I have tried putting the =props.sceneUID in single quotes, and tried using it without the = sign but no luck.
Thanks
Craig