Thanks but please have a look on my flow.
[{"id":"a765589401bee4b4","type":"tab","label":"Shelly plus tests","disabled":false,"info":"","env":[]},{"id":"2fc172e9f6ab846e","type":"mqtt out","z":"a765589401bee4b4","name":"","topic":"shellyplus1pm/events/rpc","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"b288429d0f6eacbf","x":580,"y":560,"wires":[]},{"id":"dbf798fd9567a827","type":"mqtt in","z":"a765589401bee4b4","name":"","topic":"shellyplus1pm/status/switch:0","qos":"2","datatype":"auto-detect","broker":"b288429d0f6eacbf","nl":false,"rap":false,"inputs":0,"x":270,"y":140,"wires":[["eee493262658807b"]]},{"id":"1fb4cecb8a930829","type":"mqtt in","z":"a765589401bee4b4","name":"","topic":"shellyplus1pm/online","qos":"2","datatype":"auto-detect","broker":"b288429d0f6eacbf","nl":false,"rap":false,"inputs":0,"x":240,"y":260,"wires":[["eee493262658807b"]]},{"id":"4f0d9f3e660315cd","type":"mqtt in","z":"a765589401bee4b4","name":"","topic":"shellyplus1pm/events/rpc","qos":"2","datatype":"auto-detect","broker":"b288429d0f6eacbf","nl":false,"rap":false,"inputs":0,"x":260,"y":200,"wires":[["eee493262658807b"]]},{"id":"e52690129360bd8a","type":"mqtt in","z":"a765589401bee4b4","name":"","topic":"shellyplus1pm/rpc/Shelly.GetConfig","qos":"2","datatype":"auto-detect","broker":"b288429d0f6eacbf","nl":false,"rap":false,"inputs":0,"x":290,"y":500,"wires":[["588a356d8f0d8a25"]]},{"id":"36d781ec5f3783fa","type":"comment","z":"a765589401bee4b4","name":"The following works:","info":"","x":190,"y":80,"wires":[]},{"id":"03b1186a84cb7f39","type":"comment","z":"a765589401bee4b4","name":"I am unsure about the 'GetConfig' command. I have tested some different variants that don't work:","info":"","x":430,"y":400,"wires":[]},{"id":"39718c42cd246ff3","type":"inject","z":"a765589401bee4b4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Shelly.GetConfig","payloadType":"str","x":200,"y":560,"wires":[["2fc172e9f6ab846e"]]},{"id":"1681b442de8dcafa","type":"template","z":"a765589401bee4b4","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"id\":1,\"method\":\"Shelly.GetConfig\"}","output":"json","x":320,"y":600,"wires":[["2fc172e9f6ab846e"]]},{"id":"2cb269372ac52fe9","type":"inject","z":"a765589401bee4b4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":600,"wires":[["1681b442de8dcafa"]]},{"id":"a4a70127efeb1b97","type":"comment","z":"a765589401bee4b4","name":"Tested with different topics, path and so on","info":"","x":260,"y":440,"wires":[]},{"id":"98bbc3ad4e4cbfc3","type":"comment","z":"a765589401bee4b4","name":"Shelly.GetConfig Mos Request according to the Shelly Gen 2 API docs: mos --port ${PORT} call Shelly.GetConfig","info":"","x":480,"y":680,"wires":[]},{"id":"588a356d8f0d8a25","type":"debug","z":"a765589401bee4b4","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":580,"y":500,"wires":[]},{"id":"eee493262658807b","type":"debug","z":"a765589401bee4b4","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":570,"y":180,"wires":[]},{"id":"b288429d0f6eacbf","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]