edtwodth
(Finn Edtwodth)
1
Hi,
I’m trying to set an input_number’s value in a flow in Node Red.
Im using a call service node.
I want to get the value from volume_level and send it to an input_number
msg.finnes_sonos_data.attributes : Object
{ source_list: array[1], volume_level: 0.5, is_volume_muted: false, media_content_id: "http://xxxxxx/api/…", media_content_type: "music" … }
How do I set the value in jason?
edtwodth
(Finn Edtwodth)
2
I got it to work with this
{ "value": {{entity.media_player.sonos_finnes_kontor.attributes.volume_level}} }
After i have sendt a tts i want to set the volume to the input_number value?
edtwodth
(Finn Edtwodth)
3
How do I replace “0.8”, with an input_number value, input_number.postkasse_lyd:
{"volume_level":"0.8"}
Kermit
4
the same as you did above but reference the state of the entity not an attribute.
{"volume_level": {{entity.input_number.postkasse_lyd.state}} }
1 Like