Domoticz, Sonoff, DHT22, MQTT
Posted: Sunday 12 February 2017 15:41
Hi,
I have severeal Sonoff in my Domoticz system, they al work fine.
Some have even a DHT22 connected, I have no problem sending the Temp and Hygro to Domoticz
But now I want to send them first to MTTQ and then to Domoticz.
This what mttq is recieving
{"idx":533,"nvalue":0,"svalue":"3.20;99.90;0"}
That wrong it should be {"idx":533,"nvalue":3.20,"svalue":"99.90"}
These are my setting in EasyESP
Optional Setting Value
Formula Temperature: %nvalue% Decimals: 2
Formula Humidity: %svalue% Decimals: 2
Value Name 1: Temperature
Value Name 2: Humidity
How do I fix this
I have severeal Sonoff in my Domoticz system, they al work fine.
Some have even a DHT22 connected, I have no problem sending the Temp and Hygro to Domoticz
But now I want to send them first to MTTQ and then to Domoticz.
This what mttq is recieving
{"idx":533,"nvalue":0,"svalue":"3.20;99.90;0"}
That wrong it should be {"idx":533,"nvalue":3.20,"svalue":"99.90"}
These are my setting in EasyESP
Optional Setting Value
Formula Temperature: %nvalue% Decimals: 2
Formula Humidity: %svalue% Decimals: 2
Value Name 1: Temperature
Value Name 2: Humidity
How do I fix this