Closed mikeMikeymike closed 3 years ago
It seems that your network router doesn't pick up on the hostname and doesn't add it to its DNS, so you can't use the name to connect to the ESP.. You could check if your router supports assigning a name (or fixed IP) by using the ESPs MAC address. Most routers have an option to at least assign a fixed IP for a certain devices/MAC. Of course that would involve finding out the MAC of your ESP, possibly also through your router.
Thanks for your response. Unfortunately, assigning a fixed IP didn't help. I can connect to the Homebridge with homebridge.local so some hostnames work. My Netgear R7000P firmware seems a little buggy, so it may still be a problem with my router.
Hm, but you did enter the IP address instead of "arduino-433" in the config then? I realize I didn't say that explicitly. You can just replace the "hostname" with the IP (also as a string).
oops, I didn't do that. Silly me. Entering the IP does work.
Thanks so much for providing and working on this code!
If it matters, I'm programming my ESP8266 using the Arduino IDE. The program works with a direct serial connection to my Rapsberry Pi via the serial port. But when I try using a websocket I get an error. I added a couple print statements to my Arduino code and I see that the ESP8266 is connecting to my internet. I left the default name for the WIFI_HOSTNAME
Here's the error from the homebridge log:
And here's the relevant portion of the homebridge config:
And here's the code on the ESP8266 (with passwords and ssid redacted)