HADashboard Troubles

Finally got round to setting up my first instance of the HADashboard following the ecosystem guide.

HADashboard is running in docker on the same PI as HASS. I am able to see all data from sensors on the Dashboard as well as the on/off states of groups/switches on HASS but i am unable to trigger changes to groups and switches by clicking tiles on the dashboard. Have i overlooked/misunderstood/neglected something.

Also the weather widget is yet to populate with data i have added darksky to my HASS install. I started with the minimum requirements and then all components but still no luck.

Any help would be appreciated?

Just inspected the dashboard page when trying to switch a state and i’m receiving this

   POST http://<IP-ADDRESS>:3030/homeassistant/switch 500 (Internal Server Error)
    send @ application.js:12
    ajax @ application.js:12
    f.(anonymous function) @ application.js:12
    Dashing.Haswitch.Haswitch.postState @ application.js:21738
    Dashing.Haswitch.Haswitch.onClick @ application.js:21759
    Dashing.ClickableWidget.ClickableWidget.handleClick @ application.js:15100
    (anonymous) @ application.js:15079
    dispatch @ application.js:11
    i @ application.js:11

The problem was a / at the end of my HASS url in one of the configuration files i seam to be able to change states now.

I’m still unable to pull any weather information?

Have you configured all of the Dark Sky sensors in HASS?

Hi @aimc,

Thanks for the reply.

Yes started off with just the bare requirements from the set up instructions but then after a bit of reading added them all still no luck.

Can you post the weather widget section of your erb file please?

Sure

<li data-row="1" data-col="3" data-sizex="2" data-sizey="2">
  <div data-id="weather" data-view="Haweather" data-unit="&deg;C" data-color="#FF0000" data-bgcolor="#ff9900"></div>
</li>

Any errors in the thin log file?

Just the below but i believe this is caused by restarting the docker container? Could be wrong.

2017-01-12 14:53:25,360 CRITICAL Unexpected error:
2017-01-12 14:53:25,361 CRITICAL ------------------------------------------------------------
2017-01-12 14:53:25,362 CRITICAL Traceback (most recent call last):
  File "/usr/lib/python3.4/http/client.py", line 614, in _readinto_chunked
chunk_left = self._read_next_chunk_size()
  File "/usr/lib/python3.4/http/client.py", line 559, in _read_next_chunk_size
return int(line, 16)
ValueError: invalid literal for int() with base 16: b'HTTP/1.1 200 OK\r\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/response.py", line 298, in _error_catcher
yield
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/response.py", line 380, in read
data = self._fp.read(amt)
  File "/usr/lib/python3.4/http/client.py", line 500, in read
return super(HTTPResponse, self).read(amt)
  File "/usr/lib/python3.4/http/client.py", line 529, in readinto
return self._readinto_chunked(b)
  File "/usr/lib/python3.4/http/client.py", line 618, in _readinto_chunked
raise IncompleteRead(bytes(b[0:total_bytes]))
http.client.IncompleteRead: IncompleteRead(0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/hapush/hapush.py", line 265, in run
for msg in messages:
  File "/usr/local/lib/python3.4/dist-packages/sseclient.py", line 64, in __next__
nextline = self.resp_file.readline()
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/response.py", line 397, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.4/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/response.py", line 316, in _error_catcher
raise ProtocolError('Connection broken: %r' % e, e)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))