apex-ha
apex-ha copied to clipboard
Another measurement type
The new Liquid Level Sensor reports units:
{
did: "1_P3",
type: "in",
name: "LLS",
value: 5.8
},
From the "config":
mconf: [
{
abaddr: 1,
name: "module_1",
hwtype: "FMM",
update: false,
updateStat: 0,
extra: {
swapAddr: 0,
auto: [
true,
true,
false,
false
],
mode: [
"wof",
"wof",
"LLS-15",
"LLS-15"
],
flowMode: "gph",
levelMode: "in"
}
},
Without a unit on the sensor, a history graph just shows a color bar representing different values.
Mine is configured for "inches". I'm not sure if a non-US configuration will report "cm".
Can I buy you another coffee? :)
FWIW, I used the customize feature to work around this.
customize:
sensor.apex_salt:
unit_of_measurement: ppt
sensor.apex_lls:
unit_of_measurement: in
Thanks. I can easily add these types in so any you find let me know and I'll add them to the next release.
If only I had every Apex module but keeping reef tanks get very expensive :)
Another approach would be to set the state_class of all the sensor types to 'measurement':
self._attr_state_class = SensorStateClass.MEASUREMENT
in ApexSensor.init
Interesting will check that out
Can I buy you another coffee? :)
Thanks for the coffee 👍