Espeasy mqtt to HA?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rene9900
Normal user
Posts: 28
Joined: 25 Apr 2017, 11:47

Espeasy mqtt to HA?

#1 Post by rene9900 » 01 Mar 2018, 14:13

im having some headace on this issue, i used to run node-red but felt like trying home assistant, all my Tasmota units work like out of the box, but my out door temp DTH22 on wemos mini with Espeasy will not post to HA, i installed the mosquitto mqtt app on HA and it works fine with all other units not Espeasy.
i configured the configuration.yaml like this:

sensor:
- platform: mqtt
name: "outside"
state_topic: "/Easy/dht/temp"
value_template: "{{ value_json['DTH'].Temperature }}"
unit_of_measurement: "°C"

in Espeasy i use openHAB mqtt with controllers
and in rules i have it post on boot "Publish /Easy/dht/temp"
my sensor is set up like this:
Skærmbillede 2018-03-01 kl. 14.11.03.png
Skærmbillede 2018-03-01 kl. 14.11.03.png (74.51 KiB) Viewed 3773 times
all i get is reading of - in HA
any advice is appreciated :)

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: Espeasy mqtt to HA?

#2 Post by AndrewJ » 01 Mar 2018, 19:20

Hi,
I'd advise checking what messages are being sent by your Espeasy unit, using a tool such as MQTTspy (or many others available). That will confirm whether messages are being sent, and also show you the exact format of the message so you can configure HA to match.
Hope this helps.
AndrewJ

Zeric
Normal user
Posts: 18
Joined: 29 Mar 2017, 22:37

Re: Espeasy mqtt to HA?

#3 Post by Zeric » 09 Mar 2018, 23:57

I'm using many devices with espeasy to talk with HA, and unlike tasmota, one doesn't need to specify a value template. All I have are entries like this:

sensor 1:
- platform: mqtt
name: "room name"
state_topic: "name_of_unit/device_name/temperature"
unit_of_measurement: "F"
- platform: mqtt
name: "room name"
state_topic: "name_of_unit/device_name/humidity"
unit_of_measurement: "%"

on mqtt state topics, I don't start them with a leading slash on any of my devices, if you do then you of course will need the leading slash. I convert C to F in the espeasy so it reports as F to HA.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests