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:
all i get is reading of - in HA
any advice is appreciated
Espeasy mqtt to HA?
Moderators: grovkillen, Stuntteam, TD-er
Re: Espeasy mqtt to HA?
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
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
Re: Espeasy mqtt to HA?
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.
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.
Who is online
Users browsing this forum: No registered users and 17 guests