sensor:
- name: “Get_volumes”
state_topic: >-
“voldb/{{(state_attr(‘media_player.lg_webos_tv_oled65g1pta’,
‘media_title’),’ ‘, state_attr(‘media_player.sound_system_2’, ‘source’),’ ‘,
state_attr(‘media_player.lg_webos_tv_oled65g1pta’, ‘source’),’ ',
state_attr(‘media_player.sound_system_2’, ‘sound_mode’)) | join }}”
- name: "test"
state_topic: "voldb/9HD Melbourne TV Audio Live TV PURE DIRECT"
The Test sensor works, but for some reason the Get_volumes which produces the same state_topic string according to developer tool , not working. I am new to using MQTT and would welcome some help.