Why can't emulated Hue work with OnHub or Google Home?

That is fantastic @hartmms! I’ll share a link to the Git.

This would make it super easy to get up and running, if this could be used with scripts and media players too you could simply import everything in one hit and then delete and customise the entries you wanted to keep.

I don’t seem to be getting any notifications on this site any more otherwise I would have tested this myself but I assume this will overwrite existing lights and switches already setup?

No, running this script multiple times seems to just keep adding and adding devices. I typically only have < 10 devices, so I use the HA Bridge web UI to manually delete devices. I guess I could have added some code to “GET” all the current devices and “DELETE” them, but I didn’t. The HA Bridge docs says you can delete a device with “DELETE http://host:port/api/devices/”, but I didn’t think “DELETE” was a valid http request method when I wrote this script. I see now it’s part of the RESTful API. Oh well.

I think it’s probably better the way you have it. What I meant was I just didn’t want to destroy my current setup testing your script. Just need to do a backup first when I have some fiddlin time.

I use a few names differently to what they are in HASS because of conflicts or in the case of echo/home predefined commands. Plus there are Harmony activities and customised commands using scripts and you cant turn off or dim a script you need to turn on another script. I’d not want those deleted or altered for the sake of easily importing a single new device.

Finally made a start. Here’s a link @claudio

2 Likes

Good news, I got a Google Home last night and I just got it working with Home Assistant!

PR here: https://github.com/home-assistant/home-assistant/pull/4708

Kinda sad that we just did a release as this would be great for people to hack with so I am considering putting this out in a point release :dancer:

3 Likes

Saw the PR this morning - please do!!

BTW, I inadvertently checked the wrong option on GitHub and subscribed to all updates on the project instead of just the one PR I was going to watch. Woke up today to over 220 emails. Gave me a new appreciation for what it must be like to be a senior dev - God bless you guys; I can’t imagine how long it takes you to go through your email each day!!

Cool.

I have both the Google Home and the Echo dot. Can I run both in emulated hue in HA?

I was using ha-bridge, but for my use case (getting Alexa to control x10 switches) I decided it was simpler to use fauxmo (wemo emulator) to emulate wifi switches instead of emulating a Hue Hub.