Pluggit Air Ventilation automating with Node Red

Hi,

A Happy New Year to all of you.

I am coming from this topic Need help with modbus - #7 by TurboKanne and I am stuck. After integrating the air ventilation system into Home Assistant and being able to use buttons to send commands to the ventilation system I would like to automate this now with Node Red.

I’ve built this to test if I can change the fan settings according to the buttons in my Lovelace, but this does not cause a reaction on the ventilation.

[{“id”:“eeab81794d7ebd82”,“type”:“modbus-write”,“z”:“5528bc0b.7626b4”,“name”:“Lüfterstufe”,“showStatusActivities”:true,“showErrors”:true,“unitid”:“255”,“dataType”:“HoldingRegister”,“adr”:“324”,“quantity”:“1”,“server”:“9da499532864585f”,“emptyMsgOnFail”:false,“keepMsgProperties”:false,“x”:810,“y”:420,“wires”:[[],[]]},{“id”:“65af09170e2cb58d”,“type”:“inject”,“z”:“5528bc0b.7626b4”,“name”:“1”,“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:"",“payload”:“1”,“payloadType”:“str”,“x”:530,“y”:420,“wires”:[[“eeab81794d7ebd82”]]},{“id”:“aa5c8b22aa8bf1fe”,“type”:“inject”,“z”:“5528bc0b.7626b4”,“name”:“3”,“props”:[{“p”:“payload”},{“p”:“topic”,“vt”:“str”}],“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:0.1,“topic”:"",“payload”:“3”,“payloadType”:“str”,“x”:530,“y”:480,“wires”:[[“eeab81794d7ebd82”]]},{“id”:“9da499532864585f”,“type”:“modbus-client”,“name”:“Pluggit”,“clienttype”:“tcp”,“bufferCommands”:true,“stateLogEnabled”:false,“queueLogEnabled”:false,“tcpHost”:“192.168.1.13”,“tcpPort”:“502”,“tcpType”:“DEFAULT”,“serialPort”:"/dev/ttyUSB",“serialType”:“RTU-BUFFERD”,“serialBaudrate”:“9600”,“serialDatabits”:“8”,“serialStopbits”:“1”,“serialParity”:“none”,“serialConnectionDelay”:“100”,“serialAsciiResponseStartDelimiter”:“0x3A”,“unit_id”:255,“commandDelay”:1,“clientTimeout”:1000,“reconnectOnTimeout”:true,“reconnectTimeout”:2000,“parallelUnitIdsAllowed”:true}]

In contrast to this the following yaml does work:

type: grid
cards:

  • type: button
    show_state: false
    tap_action:
    action: call-service
    service: modbus.write_register
    service_data:
    address: 324
    unit: 255
    value:
    - 1
    - 0
    hub: pluggit
    target: {}
    show_icon: true
    show_name: true
    name: Pluggit Fan 1
    icon: mdi:fan-speed-1

Can anybody help me with finding the right way to send commands to the ventilation system using Node-Red?

Thanks so much
best regards

Solution for me was to create a script with the yaml and call the script with a call-service-node in Node-Red. Just to finish this topic here :slight_smile: