Re:Home Assistant is an open-source home automation platform...
by vonseel on Saturday October 21, 2017 @06:07PM
(#15523884)
Built into the Hue app, but I bet it was fun to code :)
[ Parent
| on HN ]
Re:Home Assistant is an open-source home automation platform...
by mike-cardwell on Saturday October 21, 2017 @07:37PM
(#15524218)
Some basic bash scripting and a cron job.
Can I control a Hue light bulb with some basic bash scripting and a cron job? Can I do it without calling out to some Internet based web service?
Re:Home Assistant is an open-source home automation platform...
by a254613e on Sunday October 22, 2017 @01:14AM
(#15525271)
Yes.
curl --request PUT --data '{"on":true}' http://<local bridge ip address>/api/<your api key>/lights/<light id>/state
https://developers.meethue.com/documentation/getting-started
Re:Home Assistant is an open-source home automation platform...
by mike-cardwell on Sunday October 22, 2017 @06:09AM
(#15525988)
That's good. Does it generate any Internet traffic it all, or is it entirely local?
One thing I noticed from your command: No authentication. Looks like any software on any device on the LAN can control the light. Is that really true?
Re:Home Assistant is an open-source home automation platform...
by wrboyce on Sunday October 22, 2017 @07:16AM
(#15526220)
You were being offered a slightly simplified example, the Hue bridge does indeed require authentication.
To answer your other question, the bridge can be accessible via the online “meethue” portal for things like easy remote access but I think this is optional.
EDIT: oh, and it’ll generate internet traffic for firmware updates I suppose!
Re:Home Assistant is an open-source home automation platform...
by mike-cardwell on Sunday October 22, 2017 @07:39AM
(#15526304)
Ok. I'll probably stick with Z-Wave then. Hue doesn't seem to offer anything extra.
Re:Home Assistant is an open-source home automation platform...
by cdcarter on Sunday October 22, 2017 @08:36PM
(#15529875)
Yes, the Hue hub will expose a local internal REST API where you can easily GET the status of your bulbs and POST updates, and really do anything the Hue app can.
You just curl to your hub and everything...works.