DHT11 mqtt

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
adifoto
New user
Posts: 3
Joined: 11 Nov 2016, 01:13

DHT11 mqtt

#1 Post by adifoto » 11 Nov 2016, 01:40

Hi
I am new to easpeasy but love in it already.
At the moment i am running an pir connected to pin 0 and a dht 11 connected initially to pin 0 and now to 16.
I am verifying the mqtt messages trough android app mqtt dashboard.
The pir is working fine sending 0 and 1 every time there is motion. But the temperature and humidity is not coming trough mqtt is not publish or i deed not configure it properly.
I included some images with my configuration.
Any help is gladly appreciated.
I am planing to integrate some of esp8266 with my Home Assistant configuration.
Some peoples mentioned that they that for some reason couldn't receive mqtt messages until they change the format from /%sysname%/%tskname%/%valname% to just %sysname%/%tskname%/%valname%
I tried that and just tskname%/%valname% but no success my pir (switch) works every single time, and other variation, every single time pir send the messages but not the dht.
My MQTT Dashboard config is:
ip address of the server
port 1883 (default)
I have no password
Topic (latest); dht/temperature
QoS:0
Is Numeric selected
Unit: empty (i tried with c-degree Celsius (deed not work)

What ma I doing wrong, why doesn't work?
Thanks again.
You do not have the required permissions to view the files attached to this post.

adifoto
New user
Posts: 3
Joined: 11 Nov 2016, 01:13

Re: DHT11 mqtt

#2 Post by adifoto » 11 Nov 2016, 10:50

Just used the fallowing command in putty:
for my pir: mosquitto_sub -h 192.168.1.12 -p 1883 -v -t 'pir/#'
And receive pir/contact 0 ore 1
But when using it for dht:
mosquitto_sub -h 192.168.1.12 -p 1883 -v -t 'dht/#'
There is no result, for some reason does not send the mqtt command although is working on the device.
So i am on a blocked road any help is much appreciated.
Thanks

adifoto
New user
Posts: 3
Joined: 11 Nov 2016, 01:13

Re: DHT11 mqtt

#3 Post by adifoto » 12 Nov 2016, 12:16

Fixed after i restarted from the beginning and changed the name from dht now works fine.
If the moderator like to delete this post i am fine with that.

Who is online

Users browsing this forum: Amazon [Bot] and 13 guests