-
Notifications
You must be signed in to change notification settings - Fork 277
Question/Help : Conditional function in TYPE.DEVICE_TRACKER (EntityPicture) #215
Comments
You wouldn't be able to modify
|
Thank you so much. If you don't mind, is it possible to use another entity.state in a function (not the entity define in the widget) |
Yes, instead of using |
Thanks again :) The first answer is not working but it's a good start and I'm looking into it |
Still no luck for the entity picture (I'm still trying!), is it possible to define the entity picture for the entity in the config.js ? |
So, passing the function to hideEntityPicture is not working for you? Have you tried just setting it to hideEntityPicture: false directly in your config to confirm that works? Otherwise, I'm actually using the bg property to get a picture in my device tracker, but I don't use the map at all so take that as you wish. Example:
|
Yes, setting the and Note : I tried it with multiple 'theme' and I'll continue messing around with it! And BTW it's a great project! Many, many thanks! Honestly, I'm having so much fun! |
That's just a way to set the background picture to anything, to answer your question from your previous post. And I dug into the code a little, and it looks to me that |
Hum, didn't think of that, the 2 sets of tiles sounds the most promising option ! Tks |
That work perfectly, thanks! And if someone else is looking for that : You duplicate the same tile (and put it at the same position on the dashboard). Tile 1 end by :
Tile 2 end by :
That show the tile with the map and no entity_picture when I'm not |
Running HA
0.90.2
(up-to-date) onRP3
with TileBoard up-to-dateFirst of all... Hi! and ... I'm really new to JS and fuctions... so I'm pretty sure I'm doing it the wrong way!
Widget
TYPES.DEVICE_TRACKER
Proprety
hideEntityPicture
in aconditional function
What I'm trying to do
I want the entity_picture to be display only if the person is home
Note
The conditional part is ok, if I change it to modify the
backgroundColor
it's workingThe picture is stored and link to the entity ok, if I put
hideEntityPicture: false
in the normal way it's showing the picture instead of the mapI have try (in the last part of the code) both with ' ' and without ' ' around it.
Code
That part is the problem
The text was updated successfully, but these errors were encountered: