I have one of those GE Hinge sensors on my office door. It reports just fine since I know that a 22 is closed and a 23 is open. But I want my widget to display closed and open instead of 22 and 23. So I need a state_map on the sensor.
widget_type: sensor
entity: sensor.ge_32563_hinge_pin_smart_door_sensor_access_control_4_9
title: Door
state_map:
“22” : Closed
“23” : Open
I have tried the following
state_map:
"22": Closed
"23": Open
state_map:
22: Closed
23: Open
state_map:
- 22: Closed
- 23: Open
state_map:
- "22": Closed
- "23": Open
I also tried including state_text=1 as well.
None seem to work.
There are no errors in the log. The console only gives the following warning about some type of timeout.
jquery-3.1.1.min.js:2 [Violation] Handler took 109ms of runtime (50ms allowed)
Is it possible to adjust the frame padding on a per widget basis? I’ve found the new iframe widget works great to display my mjpeg camera streams, but the huge amount of padding around the image ends up taking too much space on my fire tablets that I use for displays.
I’ve tried a couple of things under the widget_style tag but couldn’t get anything to change.
Not currently possible I am afraid, but I could remove all the padding and the ability to have a title but it would bve for all iframe widgets. What do people think?
Another option might be to just extend the iframe widget into a camera specific widget that uses the mjpeg proxy url from hass. That way the end user only needs to specify the hass camera entity and the right transformation can be done behind the scenes to fetch the mjpeg url.
We’ve been discussing this and testing on a camera widget will have to wait until Andrew gets his cameras first. (Which may be soon now that he’s made a choice on platform )
But I think in any event that there’s no need for padding to account for a title on a widget that is so visual. Looking at it immediately tells you what you are looking at. I think it’s a good idea to remove it if we can.
Nice work! Just installed without any problems using the instructions. First I installed on a separate virtualized Ubuntu 14.04 but it was feeling a bit laggy so I did a new installation on the same RPI 3 running HA and now it works better. The setup is so much easier then v1.
It seems like the community icons from materialdesignicons.com can´t be used. Is that correct? It shows blank when i use mdi-ceiling-light but other icons like mdi-lightbulb works great.
Thanks, maybe someone smarter than me can figure out a CSS way of vertically centering the “title” for those that don’t have “title2” content in the box. I used some JS to do it after dom ready.
That’s not a bad solution, we have discussed alignment and title2 exhaustively in our testIng cave - I might bake this into the code itself.
I also like your idea of JQuery for RSS feeds, I was going to do that differently, but again, I might bake that in so all skins can use it Thanks for your hard work.
I excluded the rss js from the github version of the skin, but can send it along to you. Just removed it as it was specific to my locale and using an api not intended for production use.