# 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:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hagory85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hagory85/32/70717_2.png) [@Hagory85](https://discourse.nodered.org/u/Hagory85)\
**Post date:** [31 May 2024 21:07 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/1 "2024-05-31T21:07:27Z")

</div>

Tengo varios Shelly 1 y los controlo desde node red con un nodo de mqtt in y pongo shellies/xxx/relay/0 y para la entrada shellies/xxx/relay/0/command y funciona perfecto… he comprado los nuevos Shelly 1 plus, y ya no funciona así, alguien me puede ayudar por favor

I have several Shelly 1 and I control them from node red with a mqtt in node and I put shellies/xxx/relay/0 and for the shellies/xxx/relay/0/command input and it works perfectly... I have bought the new Shelly 1 plus, and it no longer works like that, can someone help me please

---

<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:14 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/2 "2024-05-31T21:14:36Z")

</div>

This link may help [Shellyplus1 (gen2) Nodered to MQTT - #4 by E1cid](https://discourse.nodered.org/t/shellyplus1-gen2-nodered-to-mqtt/56522/4)  
There are some setting you may have to enable

 ![chrome_screenshot_31 May 2024 22_26_18 BST](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6819b68c20f74667057b5e7f68e9c7cef594ba6.png)  
enabling `enable mqtt control` will allow these commands also

> In addition to the MQTT RPC channel, some functional components export a control interface which allows for easier integration with external systems, in cases where a complete RPC client on the peer is not feasible or practical. Publish and subscribe topics are defined which allow direct control of the device over MQTT. They are available when the `enable_control` flag in the MQTT configuration is set to `true`. For components which support mqtt control, the common topic pattern is:

- Shelly will subscribe to the following topics, accepting commands:
  - `shellies/command` which can be used to send a "broadcast" command to all devices on this MQTT exchange
  - `<topic_prefix>/command` where `<topic_prefix>` is usually unique per device
  - `<topic_prefix>/command/<component:id>` where individual components accept specific commands

---

<div class="post-metadata">

**Author:** ![Hagory85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hagory85/32/70717_2.png) [@Hagory85](https://discourse.nodered.org/u/Hagory85)\
**Post date:** [31 May 2024 21:27 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/3 "2024-05-31T21:27:43Z")

</div>

Lo he leído y habla de que quita la parte delantera shellies… que debería quedar así xxx/relay/0… probado y nada

I have read it and it talks about removing the front shellies... that it should look like this xxx/relay/0... tested and nothing

---

<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`

---

<div class="post-metadata">

**Author:** ![Hagory85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hagory85/32/70717_2.png) [@Hagory85](https://discourse.nodered.org/u/Hagory85)\
**Post date:** [1 June 2024 03:37 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/5 "2024-06-01T03:37:59Z")

</div>

Si lo que no entendió es como hacerlo…disculpaste nuevo en esto.. mi dispositivo se llama Focos\_piscina

If what you didn't understand is how to do it... you apologized new in this.. my device is called Focos\_picina

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 August 2024 03:38 UTC](https://discourse.nodered.org/t/shelly-1-plus-con-node-red/88417/6 "2024-08-30T03:38:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
