Limit LG WebOS TV volume

As parents of two kids, it causes sometimes stress when our 4 yo boy turns up the volume while the other newborn tries to take a nap. Thanks to automation for our LG WebOS TV, this is no more a concern. Hope this will help other parents keep the TV volume down.

Here goes my automation code:

- id: '1234567890'
  alias: LG Limit Audio
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: media_player.lg_tv
    above: '0.11'
    attribute: volume_level
  condition:
  - condition: state
    entity_id: input_boolean.tv_volume_limit
    state: 'on'
    for:
      hours: 0
      minutes: 0
      seconds: 1
  action:
  - service: media_player.volume_set
    data:
      volume_level: 0.1
    target:
      entity_id: media_player.lg_tv
  mode: single
3 Likes

Brilliant, man. Now our boy doesn’t know what just hit him.