Problem with Home Assistant

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Problem with Home Assistant

#1 Post by leobel96 » 20 Nov 2017, 23:58

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#2 Post by grovkillen » 21 Nov 2017, 20:15

Have you studied the wiki and forum?

viewtopic.php?f=4&t=3740
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 :idea: :idea: :idea:

leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Re: Problem with Home Assistant

#3 Post by leobel96 » 21 Nov 2017, 20:24

Yes, I've studied it. It seems like I have got the same problem of alex and it's unfixed yet... :(

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#4 Post by grovkillen » 21 Nov 2017, 20:25

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?
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 :idea: :idea: :idea:

leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Re: Problem with Home Assistant

#5 Post by leobel96 » 21 Nov 2017, 20:57

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#6 Post by grovkillen » 21 Nov 2017, 21:51

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 :idea: :idea: :idea:

leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Re: Problem with Home Assistant

#7 Post by leobel96 » 21 Nov 2017, 21:53

Uhm, I'll try it and I'll let you know

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#8 Post by grovkillen » 21 Nov 2017, 21:55

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 :idea: :idea: :idea:

IoT-beginner
New user
Posts: 2
Joined: 30 Jun 2017, 12:27

Re: Problem with Home Assistant

#9 Post by IoT-beginner » 22 Nov 2017, 14:23

The "OPENHab MQTT" controller in EspEasy does work with home assistants moquitto implementation, i use this every day.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#10 Post by grovkillen » 22 Nov 2017, 18:30

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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Problem with Home Assistant

#11 Post by vincen » 23 Nov 2017, 13:51

grovkillen wrote: 22 Nov 2017, 18:30 Yes, with Mosquitto but not the HA built in broker (yet).
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 :)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#12 Post by grovkillen » 23 Nov 2017, 15:48

vincen wrote: 23 Nov 2017, 13:51
grovkillen wrote: 22 Nov 2017, 18:30 Yes, with Mosquitto but not the HA built in broker (yet).
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 :)
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 :idea: :idea: :idea:

leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Re: Problem with Home Assistant

#13 Post by leobel96 » 23 Nov 2017, 22:19

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?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Problem with Home Assistant

#14 Post by grovkillen » 23 Nov 2017, 22:22

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 :idea: :idea: :idea:

leobel96
New user
Posts: 6
Joined: 20 Nov 2017, 23:44

Re: Problem with Home Assistant

#15 Post by leobel96 » 23 Nov 2017, 22:28

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest