Closed dodancs closed 3 weeks ago
Further debugging seems to suggest that mDNS does not work in my setup, because I have multiple VLANs and I am not able to set up any kind of packet forwarding between them to essentially turn them into one big multicast group. So, that is why I wanted to use the IP address directly for communication, but it seems like the addon completely ignores it and the rest of the configuration.
You have options:
@AlexxIT Is it not possible to just use the configuration? Why is it necessary to use mDNS when I already have the IP address and the devicekey in my disposal? Shouldn't that be everything that is needed to establish communication with the device?
mDNS uses as communication protocol in case of default ewelink firmware. Not only as discovery protocol.
Hello.
I recently stumbled upon this cool HACS addon. I am just very confused when it comes to the configuration. There are a lot of mentions how this supposedly works with Sonoff devices locally without the need for an internet connection or eWeLink cloud.
So how am I supposed to set up the local device? I am trying to add a Sonoff Micro. Based on the sparse information in the readme when it comes to LAN configuration, I tried adding my device to the configuration.yml file of Home assistant like mentioned in the readme:
I reloaded HA, also tried to fully reboot it, but on the system information page, under Sonoff I always see "Local devices online 0 / 0". So that means I have 0 configured, which is untrue.
So I have tried to also retrieve the secret key from my Micro, but noticed the communication is encrypted already, only returning something like:
So then I have also tried adding the Sonoff Micro to an eWeLink account, then reconfiguring the HACS addon to use my eWeLink account. It picked up that the device exists, and now I have the following info gathered from eWeLink's Cloud:
So now, I have tried to add also the
devicekey
from the json file that was generated by the addon from eWeLink cloud and the uiid:I then reloaded the addon and also restarted HA, but still, I get "Local devices online 0 / 0", and the logs are basically empty, so it does not seem like the addon is doing anything, and does not even pick up the configuration of the devices:
Same goes for the Sonoff device info in HA:
I tried the addon in both auto and lan mode and it does not work in either:
Here is also debug info from the addon:
The reason I need LAN-only mode is that I have a separate LAN where devices do not have access to the internet, only HA. So that means that the eWeLink app is useless to me since it uses the eWeLink cloud, therefore requires an internet connection and also it does not see my Micro as online after I successfully added it, probably because they are on different LANs. So I wanted to manually tell the addon how exactly to reach my Micro and it does not want to.
BTW: The Micro is definitely reachable from HA, so there is not a network connection issue. I can ping it no problems. If you have any other things I should test, let me know, as the standard URL of
/device
does not respond after being configured via the eWeLink app. I tried whether I am able to set up some kind of packet forwarding in between the VLANs to make it seem like a bing multicast group, but with no luck, so mDNS will definitely not work for me. That is why I wanted to use the direct IP address in the configuration for the communication, but it seems like the addon ignores it.ALSO: Tried to downgrade the addon to 3.6.0 as some people in other issues reported that in a new version of the addon, their devices stopped receiving updated, but to no avail. The same behavior happens with 3.6.0.
Help please? I am lost, and have no idea how to configure this properly since the documentation is lacking a lot.
PS: Secrets are randomly generated with
uuidgen -r
andopenssl rand -hex 12
for this issue.