@shenning00
I do not understand this. Beside modifying the configuration.yaml with the emulated_hue instruction (posting multiple hue) do I need to do anything else?
In this thread I am talking about changes I have made to my version of HA. These changes are not part of the current distribution. I am not a HA developer - but I might eventually look at merging some of these changes into HA.
In a few days I will post the code changes to this thread.
You can try this version of the emulated_hue at that time.
I will provide directions on how to get it running at that time.
@anon35356645 - I migrated my changes to the 0.38.3 version of HA.
I have been busy and haven’t had much time to confirm the changes. I was able to get 79 devices registered with Alexa. But, I haven’t tried any “Alex, turn on…” options.
I went ahead and created a new github repository to store the component for now.
no script, no scene (just scene from phisical hue) and no switch are discovered.
LOG
17-02-18 11:11:35 WARNING (Thread-7) [custom_components.emulated_hue] Alexa type is deprecated and will be removed in a future version
17-02-18 11:11:35 WARNING (Thread-7) [custom_components.emulated_hue] Listen IP address not specified, auto-detected address is 192.168.1.239
17-02-18 11:11:35 ERROR (Thread-7) [custom_components.emulated_hue] listen port - 8301
17-02-18 11:11:35 WARNING (Thread-7) [custom_components.emulated_hue] Alexa type is deprecated and will be removed in a future version
17-02-18 11:11:35 WARNING (Thread-7) [custom_components.emulated_hue] Listen IP address not specified, auto-detected address is 192.168.1.239
17-02-18 11:11:35 ERROR (Thread-7) [custom_components.emulated_hue] listen port - 8302
I don’t understand that error on the port: I will now use 8300 for Hue1 and 8303 for Hue 2
EDIT, no same error
17-02-18 11:31:06 WARNING (Thread-1) [custom_components.emulated_hue] Listen IP address not specified, auto-detected address is 192.168.1.239
17-02-18 11:31:06 ERROR (Thread-1) [custom_components.emulated_hue] listen port - 8300
17-02-18 11:31:06 WARNING (Thread-1) [custom_components.emulated_hue] Alexa type is deprecated and will be removed in a future version
17-02-18 11:31:06 WARNING (Thread-1) [custom_components.emulated_hue] Listen IP address not specified, auto-detected address is 192.168.1.239
17-02-18 11:31:06 ERROR (Thread-1) [custom_components.emulated_hue] listen port - 8303
The ‘error’ log about the port is not really an error it is just a log that I added for myself that uses _LOGGER.error(). I some times use that because the highlighting (red) stands out.
I will change it to info or remove it.
Also, the IP address is not required. It will default to the primary IP address for HA.
I have not tried using two different IP addresses. I don’t see a problem with that working.
Now - as to why you are having trouble. Did you look at the two new emulated_hue descriptions and lights api?:
You might try turning off the regular HUE and try it with just the emulated HUE. I remember reading somewhere that they have some issues working together.
The emulated_hue has as random response time delay between 1 and 8 seconds. I added this because even the different instances of emulated_hue’s were having issues when responding simultaneous.