I use eiscp out and managed to make a button controlling my volume of the onkyo receiver.
I want to make buttons in home assistant for volume up or down,
When clicking on it, it first has to read the current volume and then adjust the volume up or down with 5
I want to make buttons in home assistant for volume up or down,
Unless your question is worded incorrectly - I suggest you seek the answer from the Home Assistant Community.
A majority here do not use Home Assistant.
If you mean, you use this node -> node-red-contrib-eiscp, and want to create a Node RED dashboard button to trigger commands - then yes, but if this is a request for a Home Assistant Specific requirement - HA forums is your place.
The question is worded incorrectly.
In home assistant i have buttons vol_up5 or vol_down5
In nodered i want a node to use an event state node,
when clicked, i want to read the current volume with eiscp out node and than send a new volume with payload that is 5 higher or lower
I want to use an event-state node, when clicking a button, the event-node gets the argument 50 (current volume), then plus or minus 5, injecting it back to the Onkyo receiver.
or maybe I'll get to the point - if this node (event-state) you want to use, is a Home Assistant Node - you will need to divert your attention to the Home Assistant forums.
Most here do not use Home Assistant - therefore we won't/have no need to know.
Once you know how to use the event-state node - then we can help with Node RED Specifics
Please try and ask your question without mentioning HA nodes and it may be clearer what you want. If it is just that you have a message of one format and want to convert it to a message with a different format then show us the format of the message in and tell us, for that input, exactly what message out you want.
Post your flow and add two inject nodes with the values the event state node/s output (e.g. the value for up and down button presses). Then it would be easier for others to give you an example.
How you need to correctly structure this command, will, I'm sure be in the documentation of the node or API documentation.
All you need to do is make sure the command body is correct - and attach the function node to an Onkyo outgoing node, I assume - much like you do with your onkyo forward node