Yeah, mDNS seems to randomly start/stop working for reasons I’ve never figured out why.
I’ve also had the opposite in the past where the HA shows the plugs and ESPHome says they are all offline inexplicably (but didn’t care because it all worked fine that way).
Seems it now is suddenly finding the plug after adding that as an integration, that’s rather confusing with the UI that shows it as 1 but its many? Anyway it shows and responds now (and I was able to use hostname.dns_suffix so DHCP won’t break it later)
I am just curious, personally never used ESPHome, but from what I remember, isn’t it like a Tasmota alternative? I know in order for devices to show from Tasmota you need to insert the 19 command into the command line. Does ESPHome not use something similar?
The part I’m curious about is the advantage of ESPHome over Tasmota, used Tasmota for years with no issues. I could just be completely wrong about them being alts of each other.
Honestly I don’t know the differences between ESPHome and Tasmota but they’re both alternative firmware for the cheap WiFi based devices…I went with ESPHome and Sonoff S31 plugs because I had a friend using HA and could help me figure out how to get it working, and it all “just worked” like magic after flashing the firmware onto it.
This is the first time I have ever experienced this issue where it didn’t “just work” out of the box immediately.
Is ESPHome based on MQTT or another protocol? I’m guessing that may be the major difference after you had to choose between hostname and mDNS. Tasmota, teach the device the topic and login via MQTT, tell it to broadcast and like you said “It Just Works”.
Lot’s of the advantages you will get with the native api (but it still supports mqtt)
Advantages over MQTT
The ESPHome native API has many advantages over using MQTT for communication with Home Automation software (currently only Home Assistant). But MQTT is a great protocol and will never be removed. Features of native API (vs. MQTT):
Much more efficient: ESPHome encodes all messages in a highly optimized format with protocol buffers - for example binary sensor state messages are about 1/10 of the size.
One-click configuration: ESPHome just needs one click to set up in Home Assistant - no more messing around with retained MQTT discovery messages and alike.
One less single point of failure: In the ESPHome native API each ESP is its own server. With MQTT, when the broker shuts off nothing can communicate anymore.
Stability: Since ESPHome has far more control over the protocol than with MQTT, it’s really easy for us to roll out stability improvements.
Low Latency: The native API is optimized for very low latency, usually this is only a couple of milliseconds and far less than can be noticed by the eye.
For the native api that’s not necessary and also there is no (extra) point of failure (or “weak link”) needed like a mqtt broker
Sounds like me clicking the update-all button and having a cold beer while all of my ~95 esphome devices get their over-the-air update
Bruh, do I need to switch my Tasmos to ESPH? My garage door opener could be faster. I guess the important question here is do they by any chance have an OTA Flash like Tasmota used to? [Obviously near impossible to find eq that works with the OTA Tas now.]
Just today (like almost every day) someone in the esphome discord asked for help switching from tasmota.
the esphome.io website is essentially only finest documentation.
And when you have read the getting started guide.
You can continue this one right ahead.
For new devices (you initially flash by cable) the easiest solution nowadays might just hop over to web.esphome.io (chromium based browser needed) and just flash a dummy directly out of the browser you can then “adopt” in your esphome dashboard
I don’t use MQTT for mine. FWIW, the Sonoff S31 one seem close enough to instant I don’t know how I’d measure the delay. If I toggle a floor lamp on/off it toggles as if I was pushing the physical button on the light its that fast.
So, from what I am gathering, I can do my garage opener no problem because it plugs in via USB, my lights that are flashed with Tasmota have never been open, nor had the need to. Would I be looking at having to disassemble and solder?
But in general it’s probably easier to start with a wired one because then you have everything in front of you - including serial logs (not only ota logs )
Have you resolved this yet? The thread went off-track a while ago.
The ESPHome UI is communicating directly with the device. Home Assistant isn’t really in the loop yet. Can you see both the old and the new device files in the ESPHome UI?
How did you make the new device YAML file? Did you use the UI or copy the old YAML file? Make sure you have a different YAML file for both devices.
Oh yeah sorry forgot to hit the “solution” button on the one that solved it…I got distracted when this annoying thing called a “work week” happened. Yay.