Using Calibrate for Media Players that express volumes in decimals #1548
Replies: 1 comment
-
Missed notification of this post. I saw you also asked this question on reddit. ======================= For media_player entities powercalc will asume Hope this helps. When it still does not please create an issue on github, than we can have a look what causes this and how to resolve? Also would be a good idea to submit this power profile in the powercalc library so other users using homepod will also get a power sensor setup out of the box (using discovery). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add my homepods with powercalc so I can flesh out my energy reporting. I want a group sensor for all Homepods and include the individual energy reporting from each Homepod volume when playing (using this site as my source for power usage: link)
For the calibrate section, if I insert as below the YAML fails when checking the config with the error reading " valid config for [sensor.powercalc]: does not match regular expression ^[0-9]+ -> ([0-9]*[.])?[0-9]+$ @ data['entities'][0]['linear']['calibrate'][0]. Got '0.3 -> 0.81" and repeating for each line of 'calibrate'.
if I'm reading this correctly the calibrate section is expecting an integer before -> not a decimal, however Homepods report volume in decimals when using the Apple TV integration. If I try changing these to integers (30 -> 0.18 etc) I start getting funny values out of it.
How I'm supposed to correctly configure the calibrate section for this?
Beta Was this translation helpful? Give feedback.
All reactions