Emulated_roku and emulated_hue not working on truenas scale docker

Hi guys,

Just wondering if anyone has into this issue?

It seems like the two emulated processes are not listening on 0.0.0.0 within the docker:

bash-5.1# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 homeassistant-ix-c:8300 0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8123            0.0.0.0:*               LISTEN     
tcp        0      0 homeassistant-ix-c:8060 0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8989            0.0.0.0:*               LISTEN     
tcp6       0      0 [::]:8123               [::]:*                  LISTEN     
udp        0      0 0.0.0.0:50481           0.0.0.0:*                          
udp        0      0 0.0.0.0:1900            0.0.0.0:*                          
udp        0      0 0.0.0.0:1900            0.0.0.0:*                          
udp        0      0 239.255.255.250:1900    0.0.0.0:*                          
udp        0      0 localhost:5353          0.0.0.0:*                          
udp        0      0 homeassistant-ix-c:5353 0.0.0.0:*                          
udp        0      0 192.168.3.4:5353        0.0.0.0:*                          
udp        0      0 0.0.0.0:5353            0.0.0.0:*                          
raw        0    768 0.0.0.0:icmp            0.0.0.0:*               7          
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path

No matter what settings I put into the yaml from the documentation page, it always binds to the 172.16.x.x (or homeassistant-ix-etc) address.

Currently have this in my config file:

emulated_roku:
  servers:
    - name: Home Assistant
      host_ip: 192.168.3.4
      advertise_ip: 192.168.3.4
      listen_port: 8060
      upnp_bind_multicast: False

The docker is in host networking mode as far as i can tell, i dont have any port forwards from the host to the docker and :8123 is working as expected as it’s listening on 0.0.0.0.

Any help or tips would be greatly appreciated!

Cheers :slight_smile:

Did you try 0.0.0.0 as host_ip?

I did! Still binds to the 172.16.x.x address unfortunately.

I stumbled across this github comment which suggests the yaml is ignored if the the emulated roku integration already exists.

Removing the integration from the UI, then setting the yaml as follows got it working for both emulated hue and roku:

emulated_roku:
  servers:
    - name: Home Assistant
      host_ip: 192.168.3.4
      listen_port: 8060
      advertise_ip: 192.168.3.4
      advertise_port: 8060

emulated_hue:
  host_ip: 192.168.3.4
  listen_port: 8300
  advertise_ip: 192.168.3.4
  advertise_port: 8300
bash-5.1# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:8123            0.0.0.0:*               LISTEN     
tcp        0      0 192.168.3.4:8060        0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8989            0.0.0.0:*               LISTEN     
tcp        0      0 192.168.3.4:8300        0.0.0.0:*               LISTEN     
tcp6       0      0 [::]:8123               [::]:*                  LISTEN