"'Rainer Lang' via weewx-user" <weewx-user@googlegroups.com> writes:

> @Greg
> I cannot fully confirm your statements regarding HA
> HA shows three different types of information regarding the Ecowitt
> battery status depending on sensor:
> normal, actual voltage or percentage of charge, where in case of a
> WH45 the DC connection is shown as 120%
> As these different scales have historically grown, we have to live
> with the diversity.

We have to live with it in driver code, but nobody else does.

I agree that it's a mess, but my point is that by defining a battery
status protocol where 0% is just about empty and 100% is full, and an
"are we on external power" protocol as 0/1, we can map all sorts of
things -- not just EcoWitt -- into this, and then people that want to
display battery status can rely on the 0-100% and not/external without
having to understand the device, either at the skin code level or the
brain level.

120% is not a proper representation for the WH45.  Yes, it's 6 in the
on-air bits, but EcoWitt consoles/displays do not show 6 bars.  They
show some sort of "external power" indication, per the rtl_433 comment
(which must have come from someone with such a display helping testing
or writing the code).

> And - my suggestion can use text for status (as the OP seems to want to do)
> OFF, LOW, MED, HIGH, FULL, DC covers all situations of Ecowitt sensors
> for battery status (except for voltage)
> Sensors with two status can use only OFF and FULL
> the others have a 5 or 6 tier status information
> those with voltage can be simply display "as is":  x.x V

That is a step in the right direction, but it still results in a
non-uniform representation which needs special case processing rather
than one which can be handled with one chunk of computer or wetware
code.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/rmifs4luak8.fsf%40s1.lexort.com.

Reply via email to