I’m looking already for a week to find the correct syntax to use in my HA automation, with regarding to the action part ,to fullfil my variable, which I’ve defined in my rest_command.
The configuration-yaml contains:
rest_command:
crestron_denon_mediaplayer_post:
url: "http://192.168.128.209:5001"
method: post
payload: '{"data":{"album":"{{w_album }}"}}'
content_type: "application/json"
The action contains:
action: rest_command.crestron_denon_mediaplayer_post
target:
entity_id: media_player.denon_dnp_2000ne
data:
w_album: state_attr.media_station
My version of home assistant:
HA core: 2025.12.0, installed on a Raspberry PI 4, performed via the raspberry image tool.
The message has been sent from HA to Crestron, but the variable has never been populated. It seems HA is not be able to link it with the device. The message has been received in my Crestron without errors.
I’ve no errors found with regarding to this automatisation on the HA logs.
Thanks in advice for your support.