# Shellyplus1 (gen2) Nodered to MQTT

**URL:** <https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522>\
**Category:** General\
**Created:** [12 January 2022 12:24 UTC](https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522 "2022-01-12T12:24:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 January 2022 13:57 UTC](https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522/4 "2022-01-12T13:57:07Z")

</div>

I do not have any gen2 devices. But what have you tried?  
As far as i can make out you send

```auto
{"id":123, "src":"user_1", "method":"Switch.Set", "params":{"id":0,"on":true}}

```

to topic shelly\_id/rpc

> - `id` : number/string, identifier of this request, will be used to match the response frame. **Required**
> - `src` : string, name of the source of the request (you can choose whatever string you like to identify you as the source of the request). **Required**
> - `method` : string, name of the procedure to be called. **Required**
> - `params` : JSON object, parameters that the method takes (if any) **Optional**

---

_[View the full topic](https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522)._
