I would love some help to finish my lounge volume limiter. This is to avoid the odd very loud film/episode, and the resulting wrath of my partner. I like the idea of capping the odd party too, seeing as we have teenage girls living with us.
If the volume measured by the IP WebCam goes over the level set in this way, then Tasker (also on the android) takes this detection event and uses MQTT to trigger an automation on Home Assistant to turn our stereo down.
So far, so good.
But when the Home Assistant starts, I just want to set the input_number slider to the right ‘audio limit’ value, otherwise it’s just misleading. My wee bash script can also happily spit out the latest setting - but can I collect the bash script output, and use it to set the input_number value?
How complex can we get with that, though? I am not sure I can even use a template with that (which could leverage a sensor), to get the correct value Maybe I could reset the android App at each startup, using a static value… hmm
you can do anything you like with that input_number, setting initial to a value only ensures that each time you startup Ha, it is set to that ‘default’ value. Which is what you asked for isn’t it?
Wat you can also do is leave initial out, add the input_number to recorder.yaml include: and it remembers the setting you had last set it to, which is really kind of cool and just that bit more dynamic than setting it fixed.