Page 1 of 1

Websockets

Posted: 05 Feb 2019 14:27
by Fusseldieb
Hi,
I would love to see Websockets in Automagic. Since my home is running with "HASS.io", which is primarily controlled via Websockets, it would be a very nice implementation, since someone could turn things in their home on and and much much more.
A lot of services nowadays are made with Websockets (especially live ones, chat apps, live graphs/tickers, etc).

Thanks in advance :)

Re: Websockets

Posted: 27 Feb 2019 22:36
by elektroinside
Fusseldieb wrote:Hi,
I would love to see Websockets in Automagic. Since my home is running with "HASS.io", which is primarily controlled via Websockets, it would be a very nice implementation, since someone could turn things in their home on and and much much more.
A lot of services nowadays are made with Websockets (especially live ones, chat apps, live graphs/tickers, etc).

Thanks in advance :)
Hass.io also supports REST API. Although not the same, AM does a good job with http requests. You can try that in the meantime, it works well, tested it myself. I personally prefer not to have any (other) third party server and control stuff from the lan directly, or even from the web, through a VPN which i use anyway (if possible of course).

Re: Websockets

Posted: 11 Mar 2019 02:25
by mathieson
Bit late to the party here, but I am also using Home Assistant with the REST API. You can do everything with the REST API.

For external connections be sure to get an SSL certificate (not self signed if you want notifications).

Also you need a "long access token" for your requests.

https://developers.home-assistant.io/do ... _rest.html
https://developers.home-assistant.io/do ... h_api.html