Announcement: HADashboard v2 Beta!

This now officially IS in beta2 :slight_smile:

Wonderful!!! Thanks

@aimc @rpitera in regards to the JS not loading on reload widget or page refresh…I am not losing my mind, I figured it out. Guessing you both have “dash_force_compile = 1” in your .cfg file. I didn’t and that is why things were not working on refresh/reload. With it added all works as expected. I can now put my javascript for dummies book back on the bookshelf :relieved:

1 Like

You’re absolutely right. Nice find and I’m glad you got that mystery solved.

Thanks, you and me both! Called my insurance company to check my mental health coverage options… Thanks to both for testing things and letting me know it really was something local to my install/setup.

1 Like

It never even occurred to me, but I think it’s something @aimc will be glad to be aware of. Maybe there could be a flag or switch in the future to force compile only CSS.

At the moment you can force it in the config file, or per dash by adding recompile=1 or just recompile to the URL args. (I don’t remember if that last one was in beta 1 or not). Given that I can’t really figure it out dynamically when skins add new filles via the includes, I think I will strengthen the recommendation (or even add it!) that you use force_compile whenever developing skins.

Thanks for reporting back!

1 Like

I’m still having problems with an input slider not coming over correctly. This particular input slider is created in HA with a default value of 0. It then gets updated from my production copy of AD. But the web install of AD isn’t picking up the value. How does the dashboard get the value from HA? Does it just do a get_state or something else?

Here is the widget from my dashboard file.

dsp1hp_black:
    widget_type: input_slider
    value_style: "font-size: 100%;"
    entity: input_slider.dsp1hp_black
    title: dsp1hp black
    increment: 1
    units: u

Here is how it looks in HA. Notice the value is definitely not 0.

Same thing is happening with a couple of normal input sliders that don’t have anything to do with the production version of AD.

nighttime_hour:
widget_type: input_slider
value_style: “font-size: 150%;”
entity: input_slider.nighttime_hour
title: nighttime hour
increment: 1
units: H
nighttime_minutes:
widget_type: input_slider
value_style: “font-size: 150%;”
entity: input_slider.nighttime_minutes
title: nighttime minutes
increment: 1
units: M

What happens if you don’t specify the increment?

New version of input slider in beta 2 tomorrow.

No difference. I tried refreshing the screen via the browser, reloading the screen and specifying recompile on the url.

Ok, let’s see what happens with beta 2 and we will take it from there.

anything changing with the way the .dash files are setup in beta2??

Not at all, I think it is working pretty well, do you disagree???

No I was just wondering if I needed to change my app that builds dash files based off of the HA groups.

Nope, nothing changed, and your app is still cool :slight_smile:

You know what’s really weird…I was having the same problem as you, and I went into my /etc/hosts file and also found an entry for my host’s local network name with 127.0.1.1.

I didn’t put it there.

I’m thinking there must be a bug with some RPi setup or network package we both have used.

Are you thinking the JS should always be recompiled and force or recompile should then only act on the CSS? Just wondering about those not doing any dev and just running the skins, they are most likely not using the recompile and hence wouldn’t get the JS reloads. Like what I was seeing with the background on simplyred not working.

That is the way Debian/Ubuntu seems to be set up. Do bear in mind that any address starting 127. refers to localhost.

I decided to try working on a skin. I downloaded a jpg file I wanted to use as a background. I created my custom_css directory under the conf directory. I copied the obsidian directory from the assets/css directory. I changed the following line as shown below.

background-image: url("/custom_css/cardinals/img/cardinals_bg.jpg");

saved the file and called on of my dashboards using ?skin=cardinals (that’s what I called my directory)

No background.

What am I not seeing?

no errors anywhere

Log file contains

2017-03-11 21:11:39.503911 INFO Loading custom skin 'cardinals'
2017-03-11 21:11:39.517892 INFO Compiling dashboard 'sam_bedroom'
2017-03-11 21:11:39.867632 WARNING Unable to find widget type 'iframe'
2017-03-11 21:11:40.649842 INFO function [compile_dash] finished in 1144 ms
2017-03-11 21:11:40.662973 INFO Dashboard disconnected
2017-03-11 21:11:40.817602 INFO New dashboard connected: sam_bedroom Panel

Question: If I have a skin with a fixed image as a background, ie a link to a file on the HASS machine, what happens if another script (eg one that obtained a new image from somewhere) changed that image, ie put a new image there with the same filename. Would the background change automagically in the dashboard, or is some sort of reload needed?