Wondering if you already found a neat solution?
Myself trying to manage actions using Node Red.
[{"id":"7146ee58.fb1238","type":"traffic","z":"2d54501a.1819c","name":"Turn Down Volume","property_allow":"payload","filter_allow":"rotate_left","ignore_case_allow":false,"negate_allow":false,"send_allow":false,"property_stop":"payload","filter_stop":"unknown","ignore_case_stop":false,"negate_stop":false,"send_stop":false,"default_start":false,"differ":false,"x":890,"y":400,"wires":[["fae5222b.5f0d"]]},{"id":"fae5222b.5f0d","type":"function","z":"2d54501a.1819c","name":"Set Volume","func":"newmsg = {};\nvar volume = flow.get(\"volume\");\n\nnewmsg.payload = { data: { \"volume_level\":volume} }\n\nreturn newmsg;","outputs":1,"noerr":0,"x":1090,"y":400,"wires":[["be739ae6.44c488"]]},{"id":"be739ae6.44c488","type":"api-call-service","z":"2d54501a.1819c","name":"Zone 2","server":"c132b938.7952a8","service_domain":"media_player","service":"volume_set","data":"{\"entity_id\":\"media_player.versterker_zone_2\"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":1260,"y":400,"wires":[["d7aea08d.e33028"]]},{"id":"d7aea08d.e33028","type":"function","z":"2d54501a.1819c","name":"decrease Volume","func":"var volume = flow.get('volume')||0.0;\n\nif (volume > 0.02) {\n volume = volume - 0.05;\n flow.set(\"volume\", volume);\n \n newmsg = {\"payload\":\"looping\"}\n return newmsg;\n}\nelse {\n newmsg = {\"payload\":\"done\"};\n return newmsg;\n}","outputs":1,"noerr":0,"x":1470,"y":400,"wires":[[]]},{"id":"9b42d7b4.6e8b68","type":"traffic","z":"2d54501a.1819c","name":"Turn Up Volume","property_allow":"payload","filter_allow":"rotate_right","ignore_case_allow":false,"negate_allow":false,"send_allow":false,"property_stop":"payload","filter_stop":"unknown","ignore_case_stop":false,"negate_stop":false,"send_stop":false,"default_start":false,"differ":false,"x":900,"y":440,"wires":[["88b6b502.f0013"]]},{"id":"88b6b502.f0013","type":"function","z":"2d54501a.1819c","name":"Set Volume","func":"newmsg = {};\nvar volume = flow.get(\"volume\");\n\n//if (volume < 0.001) {\n//newmsg.payload = { data: { \"volume_level\":0.02} }\n//}\n//else{\nnewmsg.payload = { data: { \"volume_level\":volume} }\n\n//}\n\nreturn newmsg;","outputs":1,"noerr":0,"x":1090,"y":440,"wires":[["70944752.d02088"]]},{"id":"3d68a704.8d70e8","type":"api-call-service","z":"2d54501a.1819c","name":"Zone 2","server":"c132b938.7952a8","service_domain":"media_player","service":"volume_set","data":"{\"entity_id\":\"media_player.versterker_zone_2\"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":1260,"y":440,"wires":[["c78e570.433c928"]]},{"id":"c78e570.433c928","type":"function","z":"2d54501a.1819c","name":"increase Volume","func":"var volume = flow.get('volume')||0.0;\n\nif (volume < 0.75) {\n volume = volume + 0.08;\n flow.set(\"volume\", volume);\n \n newmsg = {\"payload\":\"looping\"}\n return newmsg;\n}\nelse {\n newmsg = {\"payload\":\"done\"};\n return newmsg;\n}","outputs":1,"noerr":0,"x":1460,"y":440,"wires":[[]]},{"id":"5610bf94.c4098","type":"inject","z":"2d54501a.1819c","name":"Volume ---->","topic":"","payload":"volume","payloadType":"flow","repeat":"0.1","crontab":"","once":false,"onceDelay":"0.01","x":900,"y":320,"wires":[["9b42d7b4.6e8b68","7146ee58.fb1238"]]},{"id":"114f293e.d75d3f","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":440,"wires":[["3e2d0fa7.fb742"],[]]},{"id":"3e2d0fa7.fb742","type":"change","z":"2d54501a.1819c","name":"rotate_right","rules":[{"t":"set","p":"payload","pt":"msg","to":"rotate_right","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":440,"wires":[["9b42d7b4.6e8b68","d5710307.96e998"]]},{"id":"5dc0717f.49eeb","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":400,"wires":[["4a5a1986.c36f78"],[]]},{"id":"4a5a1986.c36f78","type":"change","z":"2d54501a.1819c","name":"rotate_left","rules":[{"t":"set","p":"payload","pt":"msg","to":"rotate_left","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":400,"wires":[["7146ee58.fb1238"]]},{"id":"d570610c.4e7498","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer rotate left","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"rotate_left","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":160,"y":400,"wires":[["5dc0717f.49eeb"],[]]},{"id":"5f0f5b55.58fae4","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer rotate right","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"rotate_right","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":160,"y":440,"wires":[["114f293e.d75d3f"],[]]},{"id":"11e39d9e.11a2e2","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer slide","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"slide","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":180,"y":480,"wires":[["de77948.6a34c68"],[]]},{"id":"16ca9617.a661ba","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer flip90","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"flip90","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":170,"y":520,"wires":[["dba59428.69a6a"],[]]},{"id":"d269e37a.4c41b8","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer flip180","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"flip180","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":170,"y":560,"wires":[["e711b66f.795b9"],[]]},{"id":"51270fc4.94d5c8","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer wakeup","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"wakeup","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":170,"y":600,"wires":[["721f9ccb.346bfc"],[]]},{"id":"c171fb96.f33418","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer Shake","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"shake","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":170,"y":360,"wires":[["294e4e48.8072ea"],[]]},{"id":"de77948.6a34c68","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":480,"wires":[["4d509a22.47b3bc"],[]]},{"id":"4d509a22.47b3bc","type":"change","z":"2d54501a.1819c","name":"slide","rules":[{"t":"set","p":"payload","pt":"msg","to":"slide","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":480,"wires":[[]]},{"id":"dba59428.69a6a","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":520,"wires":[["30f845df.3b7d12"],[]]},{"id":"30f845df.3b7d12","type":"change","z":"2d54501a.1819c","name":"flip90","rules":[{"t":"set","p":"payload","pt":"msg","to":"flip90","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":520,"wires":[[]]},{"id":"e711b66f.795b9","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":560,"wires":[["a42b0a70.8f14a"],[]]},{"id":"a42b0a70.8f14a","type":"change","z":"2d54501a.1819c","name":"flip180","rules":[{"t":"set","p":"payload","pt":"msg","to":"flip180","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":560,"wires":[[]]},{"id":"721f9ccb.346bfc","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":600,"wires":[["b33ad852.818d3"],[]]},{"id":"b33ad852.818d3","type":"change","z":"2d54501a.1819c","name":"wakeup","rules":[{"t":"set","p":"payload","pt":"msg","to":"wakeup","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":600,"wires":[[]]},{"id":"294e4e48.8072ea","type":"api-current-state","z":"2d54501a.1819c","name":"cube zone 2","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.cube_wk_media_licht","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":450,"y":360,"wires":[["8e3b1544.9c7e48"],[]]},{"id":"8e3b1544.9c7e48","type":"change","z":"2d54501a.1819c","name":"shake","rules":[{"t":"set","p":"payload","pt":"msg","to":"shake","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":360,"wires":[[]]},{"id":"248c97d1.546bf8","type":"server-state-changed","z":"2d54501a.1819c","name":"Cube Woonkamer unknown","server":"c132b938.7952a8","entityidfilter":"sensor.cube_woonkamer_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"unknown","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":false,"x":600,"y":300,"wires":[["7146ee58.fb1238","9b42d7b4.6e8b68"],[]]},{"id":"d5710307.96e998","type":"api-current-state","z":"2d54501a.1819c","name":"Zone 2 uit","server":"c132b938.7952a8","outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"media_player.versterker_zone_2","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":820,"y":580,"wires":[["af856ff5.01511"],[]]},{"id":"af856ff5.01511","type":"api-call-service","z":"2d54501a.1819c","name":"Zone 2 op FM","server":"c132b938.7952a8","service_domain":"media_player","service":"select_source","data":"{\"entity_id\":\"media_player.versterker_zone_2\",\"source\":\"FM\"}","mergecontext":"","output_location":"payload","output_location_type":"msg","x":1040,"y":580,"wires":[[]]},{"id":"4e530eb3.7fae98","type":"change","z":"2d54501a.1819c","name":"set zone 2 volume","rules":[{"t":"set","p":"volume","pt":"flow","to":"0.02","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1130,"y":520,"wires":[["3d68a704.8d70e8"]]},{"id":"70944752.d02088","type":"switch","z":"2d54501a.1819c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"0.01","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":890,"y":520,"wires":[["3d68a704.8d70e8"],["4e530eb3.7fae98"]]},{"id":"c132b938.7952a8","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]