While playing with the new POST event from the MakerAPI I found the energyDuration
from the Zooz Power Switch seems to have a tiny error. The unit
is reported as null, and the value
has the unit space separated.
I get:
{
name: "energyDuration",
value: "12.77 Hours",
displayName: "Genzee Power",
deviceId: "129",
descriptionText: "Genzee Power energyDuration is 12.77 Hours ",
unit: null,
data: null
}
When almost ever unit, and I expect I should get:
{
name: "energyDuration",
value: "12.77",
displayName: "Genzee Power",
deviceId: "129",
descriptionText: "Genzee Power energyDuration is 12.77 Hours",
unit: "Hours",
data: null
}
It just making parsing the value harder since I have to look for numbers and units in the values field, and this doesn't seem to be the intention.