How to interface with Gen2-API of Shelly Plus 1PM? #511
-
How to configure the getOn topic for a Shelly Plus 1 PM through its Gen2-API?
The getOline and setOn topics are working fine. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Taken from the second example at https://github.com/arachnetech/homebridge-mqttthing/wiki/Tested-Configurations#shelly-plus-1 the following works: |
Beta Was this translation helpful? Give feedback.
Taken from the second example at https://github.com/arachnetech/homebridge-mqttthing/wiki/Tested-Configurations#shelly-plus-1 the following works:
"getOn": { "topic": "shellyplus1pm-xxxxxxxxxxxx/events/rpc", "apply": "if (message.includes('output')) return JSON.parse(message).params[\"switch:0\"].output;" }