Beiträge von DauKarl

    Thanks,
    you have put me on the right way.

    The documentation is really confusing, but finally, with copy-past and a lot of testing I found the right topic and payload.

    Topic: zwembad/rpc ==> Where zwembad is the configured device name, don't forget the /rpc
    Payload: {"id":1, "src":"PFC100", "method": "Switch.Set", "params":{"id":0,"on":true} } ==> Where the first ID and SRC is something you choose, this comes back in the confirmation message.

    This can be closed

    pasted-from-clipboard.png

    Hello,

    i am trying for some hours to do the same - switching the relay from MQTT, but it does not work.

    in my opinion i am using the same "order" as Nick - but the relay does not switch...

    is there anything else to configure on the ShellyPlus1PM?

    Code
    mosquitto_pub -t 'shellyTest/rpc' -m '{"id":124, "src":"shellyTest","method":"Switch.Set", "params":{"id":0,"on":true}}'

    with the http commands it works fine - both possibilites known to me work:

    Code
    http://192.168.2.xxx/relay/0?turn=on
    http://192.168.2.xxx/rpc/Switch.Set?id=0&on=true

    getting status infos like power and energy via mqtt works also fine only relay switching does not...

    thynk you for your help,

    Karl