To eliminate these incorrect readings, I have a rule that check it and sends only correct data to Domoticz via HTTP using the command:
Code: Select all
SendToHTTP,192.168.0.25,8080,/json.htm?type=command¶m=udevice&idx=59&nvalue=0&svalue=[HTU21D#Temperature];[HTU21D#Humidity];[INT#1
If data is sent using the sensor driver - everything is fine. This means that the controller configuration in ESP and HomeAssistant configuration are OK.
However, if I want to send it using the command in the rule, the data is not displayed. Command below:
Code: Select all
Publish %sysname%/HTU21D/Temperature/[HTU21D#Temperature]
Code: Select all
1712360414: Received PUBLISH from Meteo_1_1 (d0, q0, r0, m0, 'Meteo_1/HTU21D/Temperature', ... (5 bytes))
1712360414: Sending PUBLISH to 5pLSdtrl8B6Rb6RBwL7oyh (d0, q0, r0, m0, 'Meteo_1/HTU21D/Temperature', ... (5 bytes))
1712360414: Sending PUBLISH to Meteo_1_1 (d0, q0, r0, m0, 'Meteo_1/HTU21D/Temperature', ... (5 bytes))
Code: Select all
1712360278: Received PUBLISH from Meteo_1_1 (d0, q0, r0, m0, 'Meteo_1/HTU21D/Temperature/13.20', ... (0 bytes))
1712360278: Sending PUBLISH to Meteo_1_1 (d0, q0, r0, m0, 'Meteo_1/HTU21D/Temperature/13.20', ... (0 bytes))