Good to know - thanks. I’ll be adding the various thing people needed to do to get this working to the README.
Now it works… for some reason i had changed the data-id to haweather not weather as i should be
Excellent! I’ll update the read me with all these findings over the weekend.
Here’s another for the readme
got this error
ImportError: No module named 'configobj'
had to run
sudo pip3 install configobj
now it works. For the life of me I cant get the weather to work with Forecast.io. Is the default weather sensor named “weather” when using forecast?
Thanks for that ! The weather piece is a little inflexible as I coded it for what I had at the time, so the data-id for the weather widget must be “weather”, and you have to make sure you track all the monitored conditions I use - I will add them to the docs in the next update, for now If you add them all you should be OK.
I have everything installed and can see the default dashboard, however when I start to update it to my HA devices, nothing seems to update (I’ve only changed a few temperature sensors and it just reads “0”). It appears the only error I am getting is an SSL error.
2016-06-26 19:06:48 - OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol:
Any suggestions?
Thanks!
Setup my first dimmer today. Quick question about the behavior… The light works whenever the + or - is pressed giving the desired brightness. This is independent of the circle though. The circle can be on or off but the brightness still works. Is this the intended behavior?
To me, brightness should only work if the circle is on. OR if you use the brightness and the circle is off it should be switched on.
Am I missing something?
Looks like you have your scheme wrong in the URL configured in ha_conf.rb
- https://
vs http://
, it should match whatever you have in Home Assistant.
Its working as designed although there are certainly other ways it could be designed This way you can choose the brightness before you switch it on.
Thanks for the reply. I will confirm my config tonight.
But that’s just the thing. Even though the light is off (circle not on) by using the brightness + and - the light turns on to that brightness BUT the circle doesnt turn on.
Let me know if I explained that properly
OK, I’ll have a look - I don’t use the dimmers often so there may be an issue there.
OK, the way this is supposed to work is that yes, changing the brightness switches the lamp on. This event is then picked up from the state change in Home Assistant by HAPUSH and pushed back to the dashboard. In my case, if i hit the + on a dimmer, the circle switches on a second or so later.
Do you have HAPUSH working properly?
HAPUSH is working but it may be the end dimmer I am using Let me check it back and let you know. Thanks for the quick check!
If i push for example a script-button i want that button to be lit for aprox 5sek so I know it has been pushed.
@aimc is there any chance you know how to do this?
Im not that familiar with coffee-scripting… yet
I have taken a look at that a couple of times but haven’t figured out a good way to do it … yet - I would want it for scenes too. It’s on my list.
This is the error I am getting from HAPUSH
2016-06-27 19:32:36,427 WARNING Traceback (most recent call last):
File "./hapush.py", line 116, in dashboard_update
brightness = roundup(state['attributes']['brightness']/2.55)
TypeError: unsupported operand type(s) for /: 'str' and 'float'
and this is the state
{"attributes": {"brightness": "255", "friendly_name": "Chandelier"}, "entity_id": "light.chandelier", "last_changed": "2016-06-27T23:33:01.837550+00:00", "last_updated": "2016-06-27T23:33:01.837550+00:00", "state": "on"}
Note that this is a custom component but should mimic a dimmer perfectly (it does in the stock UI). What do you think may be the problem?
Looks like this is the issue:
"brightness": "255"
My code is expecting an int there and it is being passed in as a string - dividing a string by 2.55 doesn’t work too well
Is this something you can easily fix in your component? If not I can attempt a fix but will need you to test it for me!
Was able to get the dashboard (minus weather) working fine. When trying to start hapush though I get the following error:
Traceback (most recent call last):
File “./hapush.py”, line 21, in
from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: cannot import name ‘InsecureRequestWarning’
I think it’s the way the JSON is presented as an INT will always be in quotes. I’m not sure how your code interprets that from the standard dimmer/light component… The only fix I can think is for you to type cast to an INT before doing the division. Let me know your thoughts.
I’ll gladly test your code when implements