Working on multiple emulated_hue instances

Who else is experiencing this? Or is it me only?

No, I am seeing it too. I still get the errors even after I revert back to a single emulated_hue but at least my Echo/Alexa started working again.

I am traveling this week. Not sure how much time I will have to take a look at this. I will update here if I find something out.

2 Likes

I would suggest to put the most complete error log, so that the developer can easily/quickly rsolve the issue.

I did not upgrade to 0.44.x so I can’t post errors

Anyone tried 0.44.2 yet?

Hey. I am back home for a few days before I head out traveling again.

I made a few minor changes that reworked the way the configuration for emulated_hue is read.

I have not spent any real time testing. If you are having trouble with 0.44.x you might want to try this update in the git repo to see if it fixes your problem.

I’ll try some limited testing in the next few days.

the repo is here: https://github.com/shenning00/emulated_hue

1 Like

I am still on 0.43, wait for who has 0,44 if they can check (@masterkenobi)

Just upgraded to HA 0.44.1 and used the updated custom component. I confirm it works. Thanks @shenning00!

1 Like

you just changed the new
init.py

only, and that’s it?

Yep - ‘ordered_dict’ was removed from configuration validator. So, I wrote the validator slightly differently.

Hi!

You disappeared.

Your component works still great with Alexa, but not with Google Home

again have problem with port 80

pi@hassbian:~ $ sudo netstat -anp | grep 80
tcp 0 1 192.168.1.238:53876 192.168.1.91:8009 SYN_SENT
tcp 0 518 192.168.1.238:51436 192.168.1.91:8009 FIN_WAIT1
tcp 0 1 192.168.1.238:53802 192.168.1.91:8009 SYN_SENT
tcp 0 0 192.168.1.238:34442 192.168.1.36:8008 ESTABLISHED
tcp 0 518 192.168.1.238:51464 192.168.1.91:8009 FIN_WAIT1
tcp 0 0 192.168.1.238:48094 192.168.1.204:55443 ESTABLISHED
tcp 0 0 192.168.1.238:33912 192.168.1.36:8008 ESTABLISHED
tcp 0 1 192.168.1.238:54128 192.168.1.91:8009 SYN_SENT
tcp 0 1 192.168.1.238:36026 192.168.1.36:8009 SYN_SENT
tcp 0 0 192.168.1.238:50788 192.168.1.37:8008 ESTABLISHED
tcp 0 0 192.168.1.238:51306 192.168.1.37:8008 ESTABLISHED
tcp 0 269 192.168.1.238:51274 192.168.1.91:8009 FIN_WAIT1
tcp 0 0 192.168.1.238:57708 192.168.1.32:80 ESTABLISHED
tcp 0 1 192.168.1.238:54270 192.168.1.91:8009 SYN_SENT
tcp 0 0 192.168.1.238:48914 192.168.1.35:8008 ESTABLISHED
tcp 0 1 192.168.1.238:54066 192.168.1.91:8009 SYN_SENT
tcp 0 1 192.168.1.238:36018 192.168.1.36:8009 SYN_SENT
tcp 0 0 192.168.1.238:40368 192.168.1.37:8008 ESTABLISHED
tcp 0 264 192.168.1.238:39982 192.168.1.44:80 ESTABLISHED
tcp 0 883 192.168.1.238:51410 192.168.1.91:8009 FIN_WAIT1
tcp 0 0 192.168.1.238:45746 192.168.1.91:8008 ESTABLISHED
tcp 0 1 192.168.1.238:36016 192.168.1.36:8009 SYN_SENT
tcp 0 0 192.168.1.238:56718 192.168.1.91:8008 ESTABLISHED
tcp 0 0 192.168.1.238:51308 192.168.1.37:8008 ESTABLISHED
tcp 0 1 192.168.1.238:36020 192.168.1.36:8009 SYN_SENT
tcp 0 1 192.168.1.238:53768 192.168.1.91:8009 SYN_SENT
tcp 0 264 192.168.1.238:39994 192.168.1.44:80 ESTABLISHED
tcp 0 883 192.168.1.238:51412 192.168.1.91:8009 FIN_WAIT1
tcp 0 0 192.168.1.238:56172 192.168.1.91:8008 ESTABLISHED
tcp 0 1 192.168.1.238:36022 192.168.1.36:8009 SYN_SENT
tcp 0 159 192.168.1.238:51432 192.168.1.91:8009 FIN_WAIT1
tcp 0 1 192.168.1.238:54084 192.168.1.91:8009 SYN_SENT
tcp 1 0 192.168.1.238:46722 192.168.1.32:80 CLOSE_WAIT
tcp 0 1 192.168.1.238:36024 192.168.1.36:8009 SYN_SENT
tcp 0 0 192.168.1.238:33210 192.168.1.36:8008 ESTABLISHED
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 192.168.1.238:443 192.168.1.253:54808 ESTABLISHED
tcp6 0 0 192.168.1.238:80 192.168.1.86:54841 TIME_WAIT
udp6 0 0 fe80::f15b:f172:cf8:123 :::*
unix 3 [ ] STREAM CONNECTED 11780 641/bluetoothd
pi@hassbian:~

Is this still working for you guys? I am trying to add a couple emulated hues due to the amount of devices and I’m not having any luck. Ive added the files to

/home/homeassistant/.homeassistant/config/custom_components/

and this is my config:

emulated_hue:
  hue1:
    type: alexa
    listen_port: 8300
    expose_by_default: false
    exposed_domains:
      - switch
      - cover

hue2:
    type: alexa
    listen_port: 8301
    expose_by_default: false
    exposed_domains:
      - input_boolean

 hue3:
    type: alexa
    listen_port: 8302
    expose_by_default: false
    exposed_domains:
      - script
      - scene

  hue4:
type: alexamd
listen_port: 8303
expose_by_default: false
exposed_domains:
  - group

(not sure how this formatting works, I’m pretty sure its not a formatting error)

This is what I keep getting:

Invalid config for [emulated_hue]: [hue1] is an invalid option for [emulated_hue]

hue4 formatting is for sure wrong

1,2,3 have one indent more (not sure if that causes an error or not)

mine and it works (Type is under the e in huE1)

emulated_hue:
  hue1:
    type: alexa
    listen_port: 8301
    target_ip: 192.168.1.92
    exposed_domains:
      - switch
      - light
  hue2:
    type: alexa
    listen_port: 8302
    target_ip: 192.168.1.92
    exposed_domains:
      - script
  hue3:
    type: alexa
    listen_port: 8303
    target_ip: 192.168.1.92
    exposed_domains:
      - scene
  hue4:
    type: alexa
    listen_port: 8304
    target_ip: 192.168.1.92
    exposed_domains:
      - group
  hue5:
    type: google_home
    listen_port: 80
    target_ip: 192.168.1.91
    exposed_domains:
      - switch
      - script
      - light

Its wrong in here. I don’t understand how to paste it to look right. Im sure the formatting is fine. I just can’t get this message to go away and failing the emulated hue component.

[hue1] is an invalid option for [emulated_hue]

I have a feeling it has to do with those files, what is the correct full path, I’m on hassbian.

would it be /home/homeassistant/.homeassistant/config/custom_compenents ?

Thank you

/home/homeassistant/.homeassistant/custom_components/emulated_hue/

Thank you!!! Really appreciate the quick responses! Been messing with that for hours on hours. No more error, thanks again!

If you do expose be default false but then exposed domains will that whole domain automatically be exposed or do you need to go into customize and call out each one you want?

Not sure. I do the other way around.

Above my code, and then I put
emulated_hue: false

to those entity_id that I do not want in Alexa /GH