I haven’t figured out if that is possible yet. What I suggested is using a current state node, outputting to a different message position when the event is triggered.
The message it will give me
msg : Object
object
_msgid: "c26facef8283e949"
payload: 2
topic: ""
entity_2: "85.0"
Now I can use {{payload}} and {{entity_2}} in a call service node. The code in the event state output will divide that entity by 2.
[{"id":"b9d1897ed4f01d5d","type":"debug","z":"f80b6c338afd5483","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1030,"y":1220,"wires":[]},{"id":"efbba4107fd31ce4","type":"server-state-changed","z":"f80b6c338afd5483","name":"","server":"","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.number","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"$number($entity().state) / 2","valueType":"jsonata"}],"x":330,"y":1220,"wires":[["cf755d5fb0c33613"]]},{"id":"cf755d5fb0c33613","type":"api-current-state","z":"f80b6c338afd5483","name":"","server":"","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.grow_humidity","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"entity_2","propertyType":"msg","value":"","valueType":"entityState"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":730,"y":1220,"wires":[["b9d1897ed4f01d5d"]]}]