Closed knightjoel closed 3 years ago
One thing I don't understand is why some of these sensors are reading > 100% when my system is cooling. (ctOutdoorCoolRequestedDemand
, ctOutdoorFrequencyInPercent
, and ctOutdoorFanRequestedDemandPercentage
all exhibit this behavior).
One thing I don't understand is why some of these sensors are reading > 100% when my system is cooling. (
ctOutdoorCoolRequestedDemand
,ctOutdoorFrequencyInPercent
, andctOutdoorFanRequestedDemandPercentage
all exhibit this behavior).
I think I mentioned this in the API info. It looks like they use a scale from 0-200, so you need to divide by 2 for the percentage. I guess they wanted 1/2 a percent resolution.
Oh, thanks for the pointer.
I see in the API info that ctAHFanCurrentDemandStatus
looks like a percent using the formula x/255*100
. Nothing specific about cutting in half. However, Thermostat.device_state_attributes()
does divide the demand values by two (including ctAHFanCurrentDemandStatus
).
Based on my readings peaking at 200% even, it would seem dividing by two is accurate.
Yeah, the divide by 2 is correct. I guess I never went back and updated the API doc when I figured it out. I'll fix it.
I'm wondering if we want all of these as sensors or if most should just be attributes. You can always turn an attribute into a sensor in HA. Are you using these for automations?
I'm wondering if we want all of these as sensors or if most should just be attributes. You can always turn an attribute into a sensor in HA. Are you using these for automations?
I've thought of this, too. My feeling is if they're attributes, it's more work for users to use them because they have to manually create their template sensors. I'm a fan of exposing data via an integration's sensors so that people can use that data right away, without additional work.
This commit exposes more of the data from the Skyport API as sensors, notably, the various heating and cooling demand properties.