Receive tasmota data via mqtt

Moderator: leecollings

Post Reply
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Receive tasmota data via mqtt

Post by Nainvisible »

hey i try to install a temperature sensor on a wemos d1 mini with tasmota, but i don't know how tasmota convert its temperature but it's bad while the analog input is good, so i want to send the analog input to translate it into celcius in domoticz.

the problem is when i try to receive the tasmota mqtt data without making it as "temperature" and have the bad conversion i cannot receive the value.
I use mosquito as mqtt broker
i hope i explained clearly.
Thanks
xury
Posts: 48
Joined: Monday 10 December 2018 23:32
Target OS: Linux
Domoticz version:
Location: Poland
Contact:

Re: Receive tasmota data via mqtt

Post by xury »

Let show what do you see on console log in Tasmota device.
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

when it's sending the false temperature: Image

when it's the analog value: Image

for the both it's send via mqtt to either text input, custom sensor or temperature sensor, when the false temperature is sent no problems to see it but when it's the analog value i can't...
(if i listen to the topic with mosquito_sub cmd in the terminal of my raspberry pi i see the data for the both)
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

ok sorry it's not domoticz not receiving it but tasmota not sending the value...
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

so now my problems is "how to listen and get a mqtt value not specifically sended to one domoticz idx sensor...
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Receive tasmota data via mqtt

Post by waltervl »

That is kind of difficult to know for what device it is used for. If you are always sending an indicator like A0, A1, A2 than you can convert this to an idx with node red.

But why not sending it directly to Domoticz MQTT with Tasmota? https://tasmota.github.io/docs/Domoticz/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

how nodeRed work? is it ok with mosquitto?
I don't send with tasmota because tasmota has no way to send analog value that's not set to temp or something else and if it's set to something it convert the value.
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

ok, i've searched about nodeRed, installed it and now i'm trying to use it but idk how...
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Receive tasmota data via mqtt

Post by eddieb »

If your device is sending the wrong value, you should discuss this on the tasmota discord (https://discord.gg/Ks2Kzd4) and ask for help ...
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

so now it's almost functioning but nodered send to domoticz the object with message before the mqtt message so domoticz can't recognize it
Image
Nainvisible
Posts: 8
Joined: Saturday 20 March 2021 16:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Receive tasmota data via mqtt

Post by Nainvisible »

ok this is working now thanks for the help
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests