# Shelly 1 plus con node red

**URL:** <https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417>\
**Category:** General\
**Created:** [31 May 2024 21:07 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417 "2024-05-31T21:07:27Z")\
**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:** [31 May 2024 21:31 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/4 "2024-05-31T21:31:27Z")

</div>

Are you reading the right post

> [@Shellyplus1 (gen2) Nodered to MQTT](https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522/4):
>
> 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**

example

```auto
[{"id":"f6ee0c7b.18c73","type":"inject","z":"d1395164b4eec73e","name":"on","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"add_your_shelly_id_here/rpc","payload":"{\"id\":123,\"src\":\"any_string_you_wish\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}","payloadType":"json","x":270,"y":4760,"wires":[["5e2a3763d28e983c"]]},{"id":"5e2a3763d28e983c","type":"mqtt out","z":"d1395164b4eec73e","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"e8ba3ef5.22f4a8","x":410,"y":4760,"wires":[]},{"id":"e8ba3ef5.22f4a8","type":"mqtt-broker","name":"testb","broker":"192.168.1.25","port":"1883","clientid":"","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

```

add you shelly device id to the topic where it says `add_your_shelly_id_here`

---

_[View the full topic](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417)._
