I’m new to HA. I haven’t had too many problems so far connecting zigbee and z-wave devices. I’m to the point where I want to have some of these devices controlled via Alexa (without having to pay for a monthly subscription). I have added the following to the configuration.yaml file to enable Emulated Hue.
I have the same problem and this is the only topic that comes out from searching. Mine network is 55.55.1.1/255 and when i’ve searched on the whois db it comes out as some usa military shit again… I cannot change my whole network with a snap of my fingers and i cannot wrap my head around the connection of the private ips and networks with the public ones and even emulated_hue component???
Is there another solution or the solution is dead in the water?
looks like this is a restriction from home assistant. Debugging into the code shows that home assistant only allows the following local networks and there’s no way around it.
"""Network utilities."""
from ipaddress import IPv4Address, IPv6Address, ip_address, ip_network
from typing import Union
# IP addresses of loopback interfaces
LOCAL_IPS = (
ip_address('127.0.0.1'),
ip_address('::1'),
)
# RFC1918 - Address allocation for Private Internets
LOCAL_NETWORKS = (
ip_network('10.0.0.0/8'),
ip_network('172.16.0.0/12'),
ip_network('192.168.0.0/16'),
)
def is_local(address: Union[IPv4Address, IPv6Address]) -> bool:
"""Check if an address is local."""
return address in LOCAL_IPS or \
any(address in network for network in LOCAL_NETWORKS)
EDIT: Well, home assistant in general isn’t blocking it, emulated hue is using the func is_local. Which is why you’re getting the error.
Same here. My Home Assistant has a public IP adress in a /27 network which is assigned to my DSL line. There’s nothing wrong with this setup, but Emulated Hue refuses to use it.
Any way to change / override the is_local function without changing HA code?