I own a WH3080 weather station which also transmits data about LUX/UV-index.
I receive this data using an RTL_433, send it to a Mosquitto MQTT server where I parse the data coming from the WH3080.
The WH3080 sends 3 types of messages, with msg_type 0, 1 or 2.
One of these messages looks like this:
Code: Select all
{"time" : "2018-03-08 13:42:22", "model" : "Fine Offset Electronics WH3080 Weather Station", "msg_type" : 2, "uv_sensor_id" : 100, "uv_status" : "OK", "uv_index" : 1, "lux" : 5135.600, "wm" : 7.519, "fc" : 477.2
86}
As per the JSON/API definitions of Domoticz ( https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s ) I think I need to use this:
Code: Select all
/json.htm?type=command¶m=udevice&idx=IDX&svalue=VALUE
Code: Select all
{"idx":14,"svalue":17777}
(I'm using the same technique to send the uv-index to Domoticz, and this works correctly.
Domoticz, however, says the there's an error:
Code: Select all
Error: MQTT: Invalid data received!
Thanks,
Hans