Skip to content

How to interface with Gen2-API of Shelly Plus 1PM? #511

Answered by phillipse01
deboiph asked this question in Q&A
Discussion options

You must be logged in to vote

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;" }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@deboiph
Comment options

Answer selected by deboiph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants