bachya / ecowitt2mqtt

Send data from Fine Offset weather stations (Ecowitt, Ambient Weather, Froggit, etc.) to MQTT!
MIT License
219 stars 46 forks source link

Can We Handle Battery Sensors Better? #18

Closed mike240se closed 3 years ago

mike240se commented 3 years ago

ecowitt2mqtt version current DEV

Describe the solution you'd like The soil sensor batteries are shown as 1.5 which i assume is the voltage. If so, can we add volts as the data type?

The TH add-on sensors show as 0 which might be the battery alert flag or low voltage bool? False = batteries good, true = low batteries? Perhaps we can make that look better in HA so its more informative? Most people will have no idea what 0 and 1.5 means.

Here is what is reported in mqtt:

soil sensor battery (reports as state = 1.5)

{
  "availability_topic": "homeassistant/sensor/1624C76D3008011EFEEACBA19A743DC3/soilbatt1/availability",
  "icon": "mdi:server",
  "name": "soilbatt1",
  "qos": 1,
  "state_topic": "homeassistant/sensor/1624C76D3008011EFEEACBA19A743DC3/soilbatt1/state",
  "unique_id": "1624C76D3008011EFEEACBA19A743DC3_soilbatt1",
  "unit_of_measurement": ""
}

th sensor battery (reports as state = 0)

  "availability_topic": "homeassistant/sensor/1624C76D3008011EFEEACBA19A743DC3/batt2/availability",
  "icon": "mdi:server",
  "name": "batt2",
  "qos": 1,
  "state_topic": "homeassistant/sensor/1624C76D3008011EFEEACBA19A743DC3/batt2/state",
  "unique_id": "1624C76D3008011EFEEACBA19A743DC3_batt2",
  "unit_of_measurement": ""
}
mike240se commented 3 years ago

Also for the soil sensors, would it make sense to add logic into ecowitt2mqtt that does a battery % based on the battery voltage? Or should that be left to someone to do themselves inside of HA with a template?

bachya commented 3 years ago

@mike240se I don't have soil sensors, so I wouldn't be able to test. Feel free to submit a PR!

bachya commented 3 years ago

Adding some more context re: wh65batt (from a conversation with @MarkThielen in https://github.com/bachya/ecowitt2mqtt/issues/38):

wh65batt is 0 for me and I'm not sure what that unit should be. Let's move the battery-related discussion to #18

According to this Forum https://www.wxforum.net/index.php?topic=38922.0 It seems like that 0=Battery OK and 1=Battery Low so we could say there is no unit.

hhinma commented 3 years ago

I just wanted to chime in that the battery sensors for the ecowitt temp/humidity unit_of_measurement ends up as null in the HA sensor availability topic, which causes the sensors to be non-functional. I had not got around to doing anything about it until recently. I am not sure if this is something I need to change in Home Assistant?
HA Throws this:

2021-07-27 15:47:25 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'availability_topic': 'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/availability', 'icon': 'mdi:server', 'name': 'batt3', 'qos': 1, 'state_topic': 'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/state', 'unique_id': '6B842A43F69D2ACC8ACA41424909B06A_batt3', 'unit_of_measurement': None, 'platform': 'mqtt'},)

The value (State) that the sensor is reporting is 0. Am I simply missing some configuration?

bachya commented 3 years ago

@hhinma Need more info in order to troubleshoot. What do the ecowitt2mqtt logs (set to DEBUG) show for this battery value?

hhinma commented 3 years ago

@hhinma Need more info in order to troubleshoot. What do the ecowitt2mqtt logs (set to DEBUG) show for this battery value?

Currently running HA VM, core-2021.7.4/Home Assistant OS 6.1

I pulled an ecowitt2mqtt:latest yesterday

I have 3 of the WH31 sensors. MQTT discovery topic reports the following for the battery sensors

{
  "availability_topic": "homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/availability",
  "icon": "mdi:server",
  "name": "batt2",
  "qos": 1,
  "state_topic": "homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/state",
  "unique_id": "6B842A43F69D2ACC8ACA41424909B06A_batt2",
  "unit_of_measurement": null
}

With the server running with debug log, here are two iterations.

ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '6B842A43F69D2ACC8ACA41424909B06A', 'stationtype': 'GW1000B_V1.6.3', 'dateutc': '2021-07-28 12:44:09', 'tempinf': '67.5', 'humidityin': '71', 'baromrelin': '29.557', 'baromabsin': '29.557', 'temp2f': '68.00', 'humidity2': '69', 'temp3f': '70.70', 'humidity3': '62', 'temp4f': '66.38', 'humidity4': '69', 'batt2': '0', 'batt3': '0', 'batt4': '0', 'freq': '915M', 'model': 'GW1000_Pro'}
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Publishing according to Home Assistant MQTT Discovery standard
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received CONNACK (0, 0)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m1), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m2), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m3), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m4), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m5), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m6), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m7), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m8), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m9), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m10), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m11), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m12), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m13), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m14), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m15), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m16), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m17), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m18), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m19), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m20), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m21), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m22), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/config'', ... (328 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m23), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m24), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m25), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/config'', ... (328 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m26), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m27), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m28), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m29), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m30), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m31), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m32), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m33), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m34), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m35), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m36), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m37), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/config'', ... (329 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m38), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m39), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m40), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m41), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m42), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m43), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m44), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m45), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m46), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m47), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m48), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m49), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/config'', ... (343 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m50), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m51), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending DISCONNECT
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to HASS discovery: {'humidityin': '71', 'humidity2': '69', 'humidity3': '62', 'humidity4': '69', 'batt2': '0', 'batt3': '0', 'batt4': '0', 'baromabs': 29, 'baromrel': 29, 'temp2': 68.0, 'temp3': 70.7, 'temp4': 66.4, 'tempin': 67.5, 'dewpoint': None, 'feelslike': None, 'heatindex': None, 'windchill': None}
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '6B842A43F69D2ACC8ACA41424909B06A', 'stationtype': 'GW1000B_V1.6.3', 'dateutc': '2021-07-28 12:45:10', 'tempinf': '67.5', 'humidityin': '71', 'baromrelin': '29.557', 'baromabsin': '29.557', 'temp2f': '68.00', 'humidity2': '69', 'temp3f': '70.70', 'humidity3': '62', 'temp4f': '66.38', 'humidity4': '69', 'batt2': '0', 'batt3': '0', 'batt4': '0', 'freq': '915M', 'model': 'GW1000_Pro'}
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Publishing according to Home Assistant MQTT Discovery standard
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received CONNACK (0, 0)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m1), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m2), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m3), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidityin/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m4), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m5), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m6), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity2/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m7), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m8), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m9), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity3/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m10), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m11), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m12), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/humidity4/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m13), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m14), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m15), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt2/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m16), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m17), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m18), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt3/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m19), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/config'', ... (315 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m20), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m21), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/batt4/state'', ... (1 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m22), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/config'', ... (328 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m23), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m24), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromabs/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m25), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/config'', ... (328 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m26), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m27), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/baromrel/state'', ... (2 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m28), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m29), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m30), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp2/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m31), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m32), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m33), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp3/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m34), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/config'', ... (325 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m35), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m36), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/temp4/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m37), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/config'', ... (329 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m38), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m39), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/tempin/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m40), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/config'', ... (337 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m41), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m42), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/dewpoint/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m43), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m44), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m45), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/feelslike/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m46), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/config'', ... (341 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m47), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m48), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/heatindex/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m49), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/config'', ... (343 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m50), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/availability'', ... (6 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m51), 'b'homeassistant/sensor/6B842A43F69D2ACC8ACA41424909B06A/windchill/state'', ... (4 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending DISCONNECT
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to HASS discovery: {'humidityin': '71', 'humidity2': '69', 'humidity3': '62', 'humidity4': '69', 'batt2': '0', 'batt3': '0', 'batt4': '0', 'baromabs': 29, 'baromrel': 29, 'temp2': 68.0, 'temp3': 70.7, 'temp4': 66.4, 'tempin': 67.5, 'dewpoint': None, 'feelslike': None, 'heatindex': None, 'windchill': None}
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '6B842A43F69D2ACC8ACA41424909B06A', 'stationtype': 'GW1000B_V1.6.3', 'dateutc': '2021-07-28 12:46:11', 'tempinf': '67.5', 'humidityin': '71', 'baromrelin': '29.551', 'baromabsin': '29.551', 'temp2f': '68.00', 'humidity2': '69', 'temp3f': '70.70', 'humidity3': '62', 'temp4f': '66.56', 'humidity4': '69', 'batt2': '0', 'batt3': '0', 'batt4': '0', 'freq': '915M', 'model': 'GW1000_Pro'}
bachya commented 3 years ago

Thank you for the info, @hhinma. Isolating the relevant data here:

{
    "PASSKEY": "6B842A43F69D2ACC8ACA41424909B06A",
    "stationtype": "GW1000B_V1.6.3",
    "dateutc": "2021-07-28 12:44:09",
    "tempinf": "67.5",
    "humidityin": "71",
    "baromrelin": "29.557",
    "baromabsin": "29.557",
    "temp2f": "68.00",
    "humidity2": "69",
    "temp3f": "70.70",
    "humidity3": "62",
    "temp4f": "66.38",
    "humidity4": "69",
    "batt2": "0",
    "batt3": "0",
    "batt4": "0",
    "freq": "915M",
    "model": "GW1000_Pro"
}

To answer your original question:

I had not got around to doing anything about it until recently. I am not sure if this is something I need to change in Home Assistant?

...no, nothing you need to do differently. Per the previous messages in this thread, "better representation of battery states" has never been implemented (primarily since I, as the repo owner, don't own a device that has battery reporting like that).

Your data seems to corroborate the data I posted above:

According to this Forum https://www.wxforum.net/index.php?topic=38922.0 It seems like that 0=Battery OK and 1=Battery Low so we could say there is no unit.

In your case, you seem to have three batteries, each of which is OK.

I'd be happy to add this binary status logic to the library. We can always re-approach if others find that their devices do something more granular (show battery percentage, etc.).

hhinma commented 3 years ago

I'd be happy to add this binary status logic to the library. We can always re-approach if others find that their devices do something more granular (show battery percentage, etc.).

Might make sense. Before I looked at this thread yesterday, I had not paid any attention to the battery level and probably assumed that it was reporting level rather than a binary state. Out of several HA instances spread over my two locations, this one has given virtually no trouble, so I had not had any cause to go looking at the error logs recently until trying to debug something else over the weekend.

bachya commented 3 years ago

With #59, we now handle "binary batteries" (per the above comment):

CleanShot 2021-07-30 at 22 57 05@2x

If anyone should have batteries that report an actual % remaining, please comment here and we can re-open the issue.

cc4005 commented 3 years ago

Is ecowitt2mqtt assigning the binary value based on a voltage threshold, or is that from the device? I just put a rain gauge into service with a new battery. It's reporting 1.4 via the app (seems low; expected 1.5), is functioning properly, and ecowitt2mqtt reports value 1 (low).

It's not critical, but I would prefer the voltage be reported the same as in the app.

bachya commented 3 years ago

@cc4005 The logic currently in place is based on batteries like mine (and the others that have been reported) that only show 0 (Low) or 1 (OK). Yours is the first report indicating that we can get batteries that actually report voltage remaining. So, we should re-open this.

Can you set your ecowitt2mqtt logs to DEBUG level and paste them here? Hopefully, we can figure out a way to differentiate between the two battery types.

cc4005 commented 3 years ago

Since I posted earlier I've also added a soil sensor that's reporting 1.5 and the rain gauge is reporting 1.4 as noted previously. I had understood off is OK and on is LOW. Are my batteries showing LOW due to the non-integer value ecowitt2mqtt is receiving, or do I have the meanings backwards?

Here's the debug output.

ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '16E2C6...E1D', 'stationtype': 'GW1100B_V2.0.2', 'dateutc': '2021-08-18 23:32:16', 'tempinf': '82.6', 'humidityin': '44', 'baromrelin': '29.202', 'baromabsin': '29.202', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.500', 'monthlyrainin': '1.398', 'yearlyrainin': '48.500', 'totalrainin': '48.500', 'soilmoisture1': '39', 'wh40batt': '1.4', 'soilbatt1': '1.5', 'freq': '915M', 'model': 'GW1100B'}
ecowitt2mqtt    | INFO:ecowitt2mqtt:Unknown device; please report it at https://github.com/bachya/ecowitt2mqtt (payload: {'PASSKEY': '16E2C6...2DE1D', 'stationtype': 'GW1100B_V2.0.2', 'dateutc': '2021-08-18 23:32:16', 'tempinf': '82.6', 'humidityin': '44', 'baromrelin': '29.202', 'baromabsin': '29.202', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.500', 'monthlyrainin': '1.398', 'yearlyrainin': '48.500', 'totalrainin': '48.500', 'soilmoisture1': '39', 'wh40batt': '1.4', 'soilbatt1': '1.5', 'freq': '915M', 'model': 'GW1100B'})
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Publishing entire device payload to single topic: ecowitt2mqtt
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received CONNACK (0, 0)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m1), 'b'ecowitt2mqtt'', ... (282 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending DISCONNECT
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to ecowitt2mqtt: {'tempin': 82.6, 'humidityin': 44.0, 'baromrel': 29.2, 'baromabs': 29.2, 'rainrate': 0.0, 'eventrain': 0.0, 'hourlyrain': 0.0, 'dailyrain': 0.0, 'weeklyrain': 0.5, 'monthlyrain': 1.4, 'yearlyrain': 48.5, 'totalrain': 48.5, 'soilmoisture1': 39.0, 'wh40batt': 'on', 'soilbatt1': 'on'}

Thanks for investigating it. -Wade

edit: BTW, I just bought the gateway and they shipped the new GW1100 in place of the GW1000. They assured me the data output was the same before they shipped.

bachya commented 3 years ago

@cc4005 Apologies, I didn't realize you had posted before!

Thanks for that data dump. The value in question:

'soilbatt1': '1.5'

So, batteries can have non-binary values and there isn't an obvious mechanism to distinguish the two (e.g., Ecowitt doesn't use different data names).

This is showing as low in Home Assistant because (a) The Home Assistant representation is a binary sensor, which, in the case of batteries, equates a value of on to low and (b) because the current logic only assumes values of either 0 or non-0:

https://github.com/bachya/ecowitt2mqtt/blob/0e36d0bdb1777621f29c364150b83011d5ad966f/ecowitt2mqtt/util/battery.py#L6-L10

Your value is non-0, so your sensor is always on. You're not doing anything wrong – my logic merely needs to expand based on this new info. Let me think on it.

cc4005 commented 3 years ago

Amazon just arrived with 2 more sensors which I've connected and grabbed the log. Here are the sensors I have in place and their associated battery name/value pairs in the debug data below. Hope this helps in working out how to handle the batteries.

WH40 Wireless Self-Emptying Rain Gauge Sensor: 'wh40batt': '1.4' WH51 Multi-channel Soil Moisture Sensor: 'soilbatt1': '1.5' WH31 Multi-channel Thermo-Hygro Sensor: 'batt1': '0' [connected on Temp & Humidity CH1] WH32 Outdoor Thermo-Hygro Sensor: 'wh26batt': '0' [odd that data name doesn't match device model#]

Two non-binary and two binary. (⊙.☉)7

Here's the log.

ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received data from Ecowitt device: {'PASSKEY': '16E2C...DE1D', 'stationtype': 'GW1100B_V2.0.2', 'dateutc': '2021-08-19 02:23:04', 'tempinf': '82.6', 'humidityin': '42', 'baromrelin': '29.241', 'baromabsin': '29.241', 'tempf': '86.9', 'humidity': '40', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.500', 'monthlyrainin': '1.398', 'yearlyrainin': '48.500', 'totalrainin': '48.500', 'temp1f': '79.5', 'humidity1': '51', 'soilmoisture1': '39', 'wh40batt': '1.4', 'wh26batt': '0', 'batt1': '0', 'soilbatt1': '1.5', 'freq': '915M', 'model': 'GW1100B'}
ecowitt2mqtt    | INFO:ecowitt2mqtt:Unknown device; please report it at https://github.com/bachya/ecowitt2mqtt (payload: {'PASSKEY': '16E2...E1D', 'stationtype': 'GW1100B_V2.0.2', 'dateutc': '2021-08-19 02:23:04', 'tempinf': '82.6', 'humidityin': '42', 'baromrelin': '29.241', 'baromabsin': '29.241', 'tempf': '86.9', 'humidity': '40', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.500', 'monthlyrainin': '1.398', 'yearlyrainin': '48.500', 'totalrainin': '48.500', 'temp1f': '79.5', 'humidity1': '51', 'soilmoisture1': '39', 'wh40batt': '1.4', 'wh26batt': '0', 'batt1': '0', 'soilbatt1': '1.5', 'freq': '915M', 'model': 'GW1100B'})
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Publishing entire device payload to single topic: ecowitt2mqtt
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Received CONNACK (0, 0)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending PUBLISH (d0, q0, r0, m1), 'b'ecowitt2mqtt'', ... (420 bytes)
ecowitt2mqtt    | DEBUG:ecowitt2mqtt:Sending DISCONNECT
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to ecowitt2mqtt: {'tempin': 82.6, 'humidityin': 42.0, 'baromrel': 29.2, 'baromabs': 29.2, 'temp': 86.9, 'humidity': 40.0, 'rainrate': 0.0, 'eventrain': 0.0, 'hourlyrain': 0.0, 'dailyrain': 0.0, 'weeklyrain': 0.5, 'monthlyrain': 1.4, 'yearlyrain': 48.5, 'totalrain': 48.5, 'temp1': 79.5, 'humidity1': 51.0, 'soilmoisture1': 39.0, 'wh40batt': 'on', 'wh26batt': 'off', 'batt1': 'off', 'soilbatt1': 'on', 'dewpoint': 59.7, 'heatindex': 86.5}

One last note. I don't use Home Assistant. I'm using your terrific utility along with an mqtt plugin to bring the data into HomeSeer. I hope you'll maintain ecowitt2mqtt as home automation system agnostic, as I suspect I'm not the only non-HA user making use of it. And thanks for creating and continuing to develop it!

bachya commented 3 years ago

@cc4005 Thanks for the additional info! This definitely confirms my fear: they're mixing binary and non-binary battery types together without any clear way to demarcate them...

I wonder if we can reasonably assume that binary battery values will always be integers – 0 or 1 – and non-binary values will always be floats. That seems like a pretty loose assumption, but if I can go off of that, I have a shot at detecting which type we're looking at.

One last note. I don't use Home Assistant. I'm using your terrific utility along with an mqtt plugin to bring the data into HomeSeer. I hope you'll maintain ecowitt2mqtt as home automation system agnostic, as I suspect I'm not the only non-HA user making use of it. And thanks for creating and continuing to develop it!

Great information! I can commit that although there may be some features that are platform specific – like Home Assistant MQTT Discovery – the core functionality will always be platform agnostic.

cc4005 commented 3 years ago

I wonder if we can reasonably assume that binary battery values will always be integers – 0 or 1 – and non-binary values will always be floats. That seems like a pretty loose assumption, but if I can go off of that, I have a shot at detecting which type we're looking at.

Good question, and probably worth a shot. If I had some way of getting a battery to output exactly 1.0V then I could test it, but that would be tricky. [edit: if the device would transmit at that voltage--which is somewhat doubtful.]

Great information! I can commit that although there may be some features that are platform specific – like Home Assistant MQTT Discovery – the core functionality will always be platform agnostic.

Great!

cc4005 commented 3 years ago

On further thought, maybe it would be best to just have the actual value passed to mqtt and let the receiving platform / user deal with type. In my case, I know which are binary and which aren't so I'll manually configure the devices accordingly in HomeSeer. I don't know anything about Home Assistant's device discovery, but maybe the logic can be there for HA users or else it can be done manually there too. But for sure it would be better to get the value rather than On/Off via mqtt since that doesn't work at all for some of the devices.

bachya commented 3 years ago

Great point, @cc4005. Perhaps I can introduce a configuration variable (CLI, Docker, etc.) to pass through either "raw" values or "computed" values. I'll think about that.

bachya commented 3 years ago

@cc4005 I've just merged #81, which should handle the interpretation of float battery values as voltages. Additionally, #79 added the ability to keep raw values (so you can do your own processing downstream).

FYI, I'm going to diagnose #76 before I release a new version.

cc4005 commented 3 years ago

@cc4005 I've just merged #81, which should handle the interpretation of float battery values as voltages. Additionally, #79 added the ability to keep raw values (so you can do your own processing downstream).

FYI, I'm going to diagnose #76 before I release a new version.

Thanks for the update. Will the docker image be updated on release of new version?

bachya commented 3 years ago

@cc4005 Yep!

bachya commented 3 years ago

@cc4005 Courtesy follow-up: version 2.0.0 has been released and the Docker image is building; should be available in the next 15 minutes or so!

cc4005 commented 3 years ago

@cc4005 Courtesy follow-up: version 2.0.0 has been released and the Docker image is building; should be available in the next 15 minutes or so!

Thanks!

cc4005 commented 3 years ago

Aaron, I've pulled the docker image and all batteries--binary and float--are reporting perfectly! Awesome!

Just to confirm...INFO log level is now showing both inbound and outbound data. Intended? I believe it was just inbound previously.

-Wade

bachya commented 3 years ago

@cc4005 Inbound should only appear at DEBUG-level:

https://github.com/bachya/ecowitt2mqtt/blob/43177f443ca00370c2cb768e09333020ae273cd6/ecowitt2mqtt/mqtt.py#L84

Are you seeing differently?

cc4005 commented 3 years ago

Here's a sample.

pi@aramamos:~/ecowitt2mqtt $ docker-compose up
Creating network "ecowitt2mqtt_default" with the default driver
Creating ecowitt2mqtt ... done
Attaching to ecowitt2mqtt
ecowitt2mqtt    | INFO:ecowitt2mqtt:Unknown device; please report it at https://github.com/bachya/ecowitt2mqtt (payload: {'PASSKEY': '16E2...E1D', 'stationtype': 'GW1100B_V2.0.3', 'dateutc': '2021-08-23 23:13:41', 'tempinf': '76.5', 'humidityin': '46', 'baromrelin': '29.244', 'baromabsin': '29.244', 'tempf': '91.4', 'humidity': '48', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.004', 'monthlyrainin': '1.402', 'yearlyrainin': '48.504', 'totalrainin': '48.504', 'temp1f': '77.7', 'humidity1': '51', 'soilmoisture1': '40', 'soilmoisture2': '56', 'wh40batt': '1.6', 'wh26batt': '0', 'batt1': '0', 'soilbatt1': '1.5', 'soilbatt2': '1.8', 'freq': '915M', 'model': 'GW1100B'})
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to ecowitt2mqtt: {'tempinf': 76.5, 'humidityin': 46, 'baromrelin': 29.244, 'baromabsin': 29.244, 'tempf': 91.4, 'humidity': 48, 'rainratein': 0.0, 'eventrainin': 0.0, 'hourlyrainin': 0.0, 'dailyrainin': 0.0, 'weeklyrainin': 0.004, 'monthlyrainin': 1.402, 'yearlyrainin': 48.504, 'totalrainin': 48.504, 'temp1f': 77.7, 'humidity1': 51, 'soilmoisture1': 40, 'soilmoisture2': 56, 'wh40batt': 1.6, 'wh26batt': 0, 'batt1': 0, 'soilbatt1': 1.5, 'soilbatt2': 1.8, 'dewpoint': 68.9, 'heatindex': 96.3}
ecowitt2mqtt    | INFO:ecowitt2mqtt:Unknown device; please report it at https://github.com/bachya/ecowitt2mqtt (payload: {'PASSKEY': '16E2...E1D', 'stationtype': 'GW1100B_V2.0.3', 'dateutc': '2021-08-23 23:14:42', 'tempinf': '76.3', 'humidityin': '46', 'baromrelin': '29.241', 'baromabsin': '29.241', 'tempf': '91.2', 'humidity': '47', 'rainratein': '0.000', 'eventrainin': '0.000', 'hourlyrainin': '0.000', 'dailyrainin': '0.000', 'weeklyrainin': '0.004', 'monthlyrainin': '1.402', 'yearlyrainin': '48.504', 'totalrainin': '48.504', 'temp1f': '77.7', 'humidity1': '51', 'soilmoisture1': '40', 'soilmoisture2': '56', 'wh40batt': '1.6', 'wh26batt': '0', 'batt1': '0', 'soilbatt1': '1.5', 'soilbatt2': '1.8', 'freq': '915M', 'model': 'GW1100B'})
ecowitt2mqtt    | INFO:ecowitt2mqtt:Published to ecowitt2mqtt: {'tempinf': 76.3, 'humidityin': 46, 'baromrelin': 29.241, 'baromabsin': 29.241, 'tempf': 91.2, 'humidity': 47, 'rainratein': 0.0, 'eventrainin': 0.0, 'hourlyrainin': 0.0, 'dailyrainin': 0.0, 'weeklyrainin': 0.004, 'monthlyrainin': 1.402, 'yearlyrainin': 48.504, 'totalrainin': 48.504, 'temp1f': 77.7, 'humidity1': 51, 'soilmoisture1': 40, 'soilmoisture2': 56, 'wh40batt': 1.6, 'wh26batt': 0, 'batt1': 0, 'soilbatt1': 1.5, 'soilbatt2': 1.8, 'dewpoint': 68.1, 'heatindex': 95.5}

image

bachya commented 3 years ago

@cc4005 Ah, okay. You're seeing a different log line: one that asks you to report a missing device in this repo (and gives you the inbound payload so that you can paste it directly into an issue).

cc4005 commented 3 years ago

Aha! No issue for me, just thought I was seeing something different that prior. Thanks again.