HADashboard in IOS 5.1.1

Still mulling it over, but it is on my list yes.

Hello, everybody.

I WAS having same problem with iOS 5.1.1, but managed to implement (if you can call this implementation) SockJS on AppDaemon version 3 and my iPad came back to use :slight_smile:
Here is a link to my repo: https://github.com/algirdasc/appdaemon
I’m running AppDaemon in Docker, so you can build Docker image with create_docker_image.sh script.

2 Likes

Is it possible to use this with hass.io? Or do I need to alter the docker? I’m also using an ipad1 and want to use websocket. Thanks

I cant tell for sure. I’m just using AppDaemon as separate docker container and it works fine with my ipad and HA.

I’m no expert in HASSIO docker but in the docker github page it’s possible to add python packages
. described here:


and the sockjs algirdasc uses is in the list

do i need to add something else to use this sockjs?

Adding package is the easy part. Hard part is changing appdaemon logic to use sockjs package. If you have access to appdaemon source on your installation, you could make those changes like in my github repository. Also, I needed to modify sockjs library a bit, because it wasn’t using async calls (see https://github.com/algirdasc/appdaemon/tree/master/appdaemon/sockjs).

I got your docker working. I placed it on a separate Rpi. I only get this error message. in the log in docker logs appdaemon and also in HASSIO. Do i do something wrong?

 2018-03-05 18:38:14.263880 INFO AppDaemon Version 3.0.0b4 starting
2018-03-05 18:38:14.264596 INFO Configuration read from: /conf/appdaemon.yaml
2018-03-05 18:38:14.267020 INFO AppDaemon: Starting Apps
2018-03-05 18:38:14.273793 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-05 18:38:14.335286 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-05 18:38:14.336621 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-05 18:38:14.337652 INFO Starting Dashboards
2018-03-05 18:38:14.361614 INFO API is disabled
2018-03-05 18:38:14.401047 INFO AppDaemon: HASS: Connected to Home Assistant 0.64.3
2018-03-05 18:38:14.474681 INFO AppDaemon: Got initial state from namespace default
2018-03-05 18:38:16.737079 INFO AppDaemon: Adding conf/apps to module import path
2018-03-05 18:38:16.738677 WARNING AppDaemon: No app description found for: conf/apps/hello.py - ignoring
2018-03-05 18:38:16.740276 INFO AppDaemon: App initialization complete
Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 231, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp\_http_parser.pyx", line 295, in aiohttp._http_parser.HttpParser.feed_data
  File "aiohttp\_http_parser.pyx", line 437, in aiohttp._http_parser.cb_on_headers_complete
  File "aiohttp\_http_parser.pyx", line 182, in aiohttp._http_parser.HttpParser._on_headers_complete
aiohttp.http_exceptions.InvalidHeader: 400, message='Invalid HTTP Header: Sec-Websocket-Key1'

No. I think it’s iPad browser sending this header while negotiating on data transfer. Does your iPad work?

yes, everything works fine now. I’m sorry. I was browsing my dashboard with minibrowser instead of safari. When i open safari it runs without errors. Thank you!

Now it’s time to find out how to get the MPD playlist in an input_select so my wife can start a playlist.
{{states.media_player.mpd.attributes.source_list}}
but that’s the next step

Already found. if your interested:

@algirdasc
Finally got my ipad back in use!
If possible, can you upgrade your version to the v3.0 release?

@aimc Since version 3 is released, do you have a timeframe when this will be in the official release?

Yes, of course, I just need to find some free time to do this.

2 Likes

Did any one tried latest AppDaemon version with iOS 5.1.1? Does it work or does it need fixing?

it should work.

the dashboard works with most browsers, could be that you need to chose another browser if you have some trouble with something.

There are no other browsers in old iPad 1 (iOS 5.1.1). And those, that are available does not support newer websockets protocol. Seems like I’ll spend my evening adding SockJS support to AppDaemon 3.0.2.

i wouldnt count on a quick release.
Andrew is very busy in the moment for his work.

if you want to add something and make a PR, then make sure it doesnt create a problem in any other platform
test that thourowly on all platforms that are available for you.
and if possible provide test results also.

I’ve upgraded AppDaemon to latest version, v.3.0.2 with SockJS. Works on my iPad :slight_smile:

https://github.com/algirdasc/appdaemon/

oops i thought we were still on 3.01, but i forgot the quick bugrelease :wink:

Hello.

Tried to pull your git using docker-compose with image: algirdac/appdaemon, but I get an error message saying:
ERROR: pull access denied for algirdasc/appdaemon, repository does not exist or may require 'docker login'

Is it something I’m missing? First time I see this error.

Not sure where you get this error, but it should be algirdasc/appdaemon (not algirdac).