Problem with Home Assistant
Moderators: grovkillen, Stuntteam, TD-er
Problem with Home Assistant
Hi to all, I'm new with EspEasy but I'm having an headache trying to make MQTT working. I've installed the last version of ESPEasy (https://github.com/letscontrolit/ESPEas ... .0.0-dev12) on my NodeMCU v1.0, I've given a name to it (https://imgur.com/SGikeGy) and I've configured MQTT to work with Home Assistant (https://imgur.com/KoISxCd). Then I've tried to make a simple MQTT request (https://imgur.com/C2ju6Ti) from HA to EE but nothing happens: the pin remains HIGH. I've also tried adding and removing "/" at the beginning or changing the Unit name or sending a "1" instead of a "0" but nothing changes. Home Assistant is correctly configured because I'm using the Embedded Broker and I've already tested it with other MQTT clients. Please help me.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
Yes, I've studied it. It seems like I have got the same problem of alex and it's unfixed yet... 

- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
It seems like the built in broker for Home Assistant is not compatible with current MQTT library in ESP Easy: https://github.com/letscontrolit/ESPEasy/issues/378
Read this: https://github.com/letscontrolit/ESPEas ... -315254965
You might want to test Mosquitto instead?
Read this: https://github.com/letscontrolit/ESPEas ... -315254965
You might want to test Mosquitto instead?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
Now it makes sense. Anyway I don't like the fact that Mosquitto is a public MQTT broker. For privacy I prefer to use the Embedded Broker.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
You run Mosquitto on your own server. Not cloud based.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
Uhm, I'll try it and I'll let you know
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
I got a portable (very simple) version for tests like this. You find the link on my blog (at the bottom of the ESP blog posts).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- New user
- Posts: 2
- Joined: 30 Jun 2017, 12:27
Re: Problem with Home Assistant
The "OPENHab MQTT" controller in EspEasy does work with home assistants moquitto implementation, i use this every day.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
Yes, with Mosquitto but not the HA built in broker (yet).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
Why do you bother with rather limited integrated MQTT server of HA ?? Just as previously told install Mosquitto (setup is pretty simple for basic configuration, declare it in HA, and connect ESPEasy to it and voilà all done

- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
I don't understand. I use Mosquitto myself. OP is using the integrated HA broker...

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
After a lot of problems (port conflict with the Embedded Broker) I've installed and configured Mosquitto on Home Assistant and now everything works!! Thank you. Isn't there any possibility to see in the future a compatibility between ESP Easy and the Embedded Broker? Could you please add in the Wiki a Warning for the Home Assistant's users?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Problem with Home Assistant
I will do that in time. Thanks for the suggestion.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Problem with Home Assistant
You are welcome. Also please suggest to set a port different from 1883 in HA's configuration because it caused me a lot of troubles and it's written nowhere.
Who is online
Users browsing this forum: No registered users and 8 guests