Announcement - HADashboard v2 Beta 2!

Having problem with state_map

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)

Any thoughts?

Makes sense - I’ll change it.

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.

Actually, I just realized I don’t do state mapping for numbers but I’ll add it in the next release, it’s am easy fix.

1 Like

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?

I kind of like the idea, but I’d like to test it first and I am in the middle of a restart that I expect to take a while.

Hopefully, after a safe upgrade… Give me a few minutes and I’ll DM you.

It’s kind of a visual thing in the first place so I don’t know if a title is really necessary.

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.

1 Like

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 :wink:)

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.

1 Like

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.

@aimc New skin with cover and script widgets in use (and custom jquery to get local news into label widget :slight_smile: )

See the readme for important info about using the skin.

https://github.com/arraylabs/hadashboard-skin-dark_flower

4 Likes

i can seem to get the weather to work right. This is what I get on the panel.

same here :

Very cool - I will see If I can get this into the next beta :slight_smile:

Do you have Dark Sky configured?

You both need to configure all of the sensors in the docs for Weather to work.

Ah. Thats what I was thinking. Thanks

1 Like

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 :slight_smile: Thanks for your hard work.

2 Likes

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.

1 Like