Exec node write stderr to Logbook service (HomeAssistant)

I'm using 1.3.5 embedded in to HomeAssistant.

I'm running the following code to trigger a backup to GH, and I would like to log the event outcome to the HomeAssistant Logbook service. I am able to write to the Logbook successfully, but the message payload is empty (despite the debug node indicating that there is, indeed, payload content to post). I'm sure it's something to do with my syntax or something silly like that. Any help would be appreciated!

[{"id":"ce2c28b4.f9a158","type":"tab","label":"Git Commit /config","disabled":false,"info":""},{"id":"24579bcb.5c9814","type":"inject","z":"ce2c28b4.f9a158","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"36000","crontab":"","once":false,"onceDelay":"","topic":"","payload":"Git Commit /config","payloadType":"str","x":310,"y":160,"wires":[["145b508a.f3325f","db51f56a.51d3d8","f3f95db5.deb5f"]]},{"id":"145b508a.f3325f","type":"debug","z":"ce2c28b4.f9a158","name":"","active":true,"tosidebar":true,"console":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":160,"wires":[]},{"id":"db51f56a.51d3d8","type":"exec","z":"ce2c28b4.f9a158","command":"/config/ha_gitpush.sh","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":500,"y":260,"wires":[["45e8b64f.e53f08"],["cd995acd.ab47b8","57410194.98daf"],[]]},{"id":"45e8b64f.e53f08","type":"debug","z":"ce2c28b4.f9a158","name":"Git Commit /config stdout","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":790,"y":220,"wires":[]},{"id":"57410194.98daf","type":"debug","z":"ce2c28b4.f9a158","name":"Git Commit /config stderr","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":790,"y":260,"wires":[]},{"id":"f399a7c2.6c9908","type":"debug","z":"ce2c28b4.f9a158","name":"Git Commit /config return","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":790,"y":300,"wires":[]},{"id":"f3f95db5.deb5f","type":"api-call-service","z":"ce2c28b4.f9a158","name":"Write Logbook Service","server":"6cf4ad50.40e034","version":3,"debugenabled":false,"service_domain":"logbook","service":"log","entityId":"automation.push_ha_configuration_to_github_repo","data":"{\"name\":\"Git Commit /config\",\"message\":\"has been executed\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":620,"y":80,"wires":[[]]},{"id":"cd995acd.ab47b8","type":"api-call-service","z":"ce2c28b4.f9a158","name":"Write stdout to Logbook Service","server":"6cf4ad50.40e034","version":3,"debugenabled":false,"service_domain":"logbook","service":"log","entityId":"automation.push_ha_configuration_to_github_repo","data":"{\"name\":\"Git Commit /config\",\"message\":\"{{ msg.payload }}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":440,"wires":[["36ee5a11.a92576"]]},{"id":"36ee5a11.a92576","type":"debug","z":"ce2c28b4.f9a158","name":"Git Commit /config log","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":440,"wires":[]},{"id":"6cf4ad50.40e034","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.