I tried also that… no way.
One doubt. About the token i see the token inside appdaemon.yaml is different from the one i created in HA… must be the same? I did not created that token, maybe it’s created by the add-on?
Ok, try to make a new token from the front end. It doesn’t have to be the same as in the appdaemon.yaml file as long as you know that the token is valid.
In any case, you need to figure out why the websocket isn’t working. I see that you have http://hassio/homeassistant
as the ha_url in your appdaemon file.
Try
ws://hassio/homeassistant/api/websocket
in the chrome addon.
already tried also this with the same result, now i created a new token and restarted appdaemon add-on.
It’s all ok this inside the appdaemon log:
2019-12-02 22:34:23.761108 WARNING Variable definition not found in CSS Skin variables: $googlemaps_widget_style
2019-12-02 22:34:23.842273 INFO Loading custom widget 'basegooglemaps'
2019-12-02 22:34:23.844945 INFO Loading custom widget 'googlemaps.yaml'
2019-12-02 22:34:24.363848 INFO function [get_dashboard] finished in 1270 ms
2019-12-02 22:34:24.386389 INFO HADashboard: Dashboard disconnected
2019-12-02 22:34:24.706682 INFO HADashboard: New dashboard connected: Maps
Sorry but i am getting this inside appdaemon log
2019-12-02 22:34:24.363848 INFO function [get_dashboard] finished in 1270 ms
2019-12-02 22:34:24.386389 INFO HADashboard: Dashboard disconnected
2019-12-02 22:34:24.706682 INFO HADashboard: New dashboard connected: Maps
2019-12-02 22:36:05.030722 INFO function [get_dashboard] finished in 102 ms
2019-12-02 22:36:05.058686 INFO HADashboard: Dashboard disconnected
2019-12-02 22:36:05.358953 INFO HADashboard: New dashboard connected: Maps
2019-12-02 22:41:30.801651 INFO function [get_dashboard] finished in 763 ms
2019-12-02 22:41:30.820301 INFO HADashboard: Dashboard disconnected
2019-12-02 22:41:31.144190 INFO HADashboard: New dashboard connected: Maps
2019-12-02 22:41:48.519770 INFO function [get_dashboard] finished in 104 ms
2019-12-02 22:41:48.540928 INFO HADashboard: Dashboard disconnected
2019-12-02 22:41:50.144528 WARNING AppDaemon: Scheduler clock skew detected - delta = 1.1444449424743652 - resetting
2019-12-02 22:41:52.245402 WARNING AppDaemon: Excessive time spent in utility loop: 2097.0ms
2019-12-02 22:41:53.317205 WARNING AppDaemon: Scheduler clock skew detected - delta = 2.1727020740509033 - resetting
2019-12-02 22:41:55.552659 INFO HADashboard: New dashboard connected: Maps
No way… also with the new token i have the same result.
I think i am forced to disable this custom widget… sorry, i really like it ad it’s really usefull.
BTW thanks for your support and if you find something related to my problem, please let me know…
If this can be important i am using also duckdns add-on.
EDIT: maybe do i need to configure port 5050 inside my router?
EDIT 2: I found where is the problem!
If i use wss in place of ws i get the websocket working good, so now, how to change that inside the basegooglemaps custom widget?
I tried to replace all ws entries inside the various files (just for trying) with wss and now in the console i get:
Any hints? Maybe we are near the solution…