Okay, that’s good.
It’s customary and helpful to others to post your final configuration as an example, and to mark a thread that you have a solution to as ‘solved’ by ticking the post that most helped you on the way.
It’s pointless to tick your own posting (unless no-one else contributed) as then EVERY thread would be solved by the OP
Cheers
- id: '1587888014390'
alias: LG TV Max volume
description: ''
trigger:
- entity_id: media_player.lg_tv
platform: state
condition: []
action:
- data_template:
entity_id: media_player.lg_tv
volume_level: '{{ 0.01 * states(''input_number.lg_max_volume'') | float}}'
service: media_player.volume_set
I actually inserted " and ’ excactly where you put them…but HA reordered them …however it is working …anyway.
I have also inserted a 0.01 multiplier to get a integer (0-30) slider.