Shelly Plus 1PM - [ Ссылка ]
I’ll try to integrate Shelly Plus 1PM with Home Assistant and Node-RED to control my water heater. Because I almost burned my house with Sonoff POW R2.
Shelly Plus 1PM - [ Ссылка ]
Shelly Pro 4PM - [ Ссылка ]
Shelly Plus 1 - [ Ссылка ]
Shelly 1 - [ Ссылка ]
Shelly 1L - [ Ссылка ]
Shelly Flood - [ Ссылка ]
Shelly Motion 2 - [ Ссылка ]
Shelly Door Window - [ Ссылка ]
Shelly Plug - [ Ссылка ]
Shelly Plug S - [ Ссылка ]
Fortunately everything ends fine thanks to a non smart fire extinguisher and my barking like crazy dog.
Now I’ll try to connect the water heater with #Shelly Plus 1PM and then of course I will add it to #HomeAssistant and #Node-RED.
Maybe the mistake with the wiring of the Sonoff was mine or there is something else I cannot say at the moment.
My electric water heater is 3000W and the written max power of the Sonoff POWR2 is 3500W, so this shouldn’t be the problem. Also It was working OK for about a month until it burns out.
What is Shelly Plus 1PM and for what can I use it?
Shelly Plus 1PM is a very small smart switch capable of controlling any electrical appliance (up to 16amps) while measuring its power consumption
Overheating Protection
The guys from Shelly claim that there is an Internal temperature sensor for overheating protection, so the device will turn off if the temperature of the device goes above some dangerous level.
Something that is becoming must have for me from now on. Unfortunately and clearly the Sonoff POWR2 don’t have such sensor.
In general this is exactly what I needed for my second attempt with the Water Heater and Shelly match all of my criteria perfectly.
At the end for the desert I will guide you step-by-step how you can integrate your shelly device with Home Assistant and Node-RED
So enough sweet talks lets get to the action:
Home Assistant integration
The easiest way to add Shelly devices to Home Assistant is to install HACS (Home Assistant Community Store) – This is the video tutorial that you can follow in order to install it - [ Ссылка ]
Of course you can do it manually by adding ShellyForHass as custom component to your Home Assistant installation - [ Ссылка ]
But I recommend to use the HACS method from above.
To integrate Shelly with Home Assistant open your HACS, click on the ‘INTEGRATIONS’ tab and search for: ShellyForHass then click on the ‘INSTALL’ button
Then you have to change a little bit your configuration.yaml file by either using the Configurator plugin or text editor from the console.
Open your configuration.yaml and add the following
shelly:
You can also these two lines to extract the exact name of the device from the Shelly cloud service:
shelly:
cloud_auth_key: "XXX"
cloud_server: "shelly-XXX.shelly.cloud"
To get your cloud_auth_key you have to visit the following url and login with your Shelly credentials – [ Ссылка ]
Don’t forget to click the ‘GET KEY’ button to reveal your cloud_auth_key.
Now you have to restart your Home Assistant and then you can create an ‘ENTITIES’ card in your dashboard/Lovelace.
Click on the ‘Configure UI’ in the upper right corner and then on the big orange Plus button in the lower right corner. After that choose ‘ENTITIES’
From the Entities Card Configuration, click on the Entity dropdown and search for Shelly…
Last click on the ‘SAVE’ button and enjoy your Shelly device from Home Assistant.
Node-RED integration
I will use a collection of HTTP API & MQTT flows for the integration of Shelly device and Node-RED. All the credits for this collection are going to its author Paul – [ Ссылка ]
Importing a Flow in Node-RED
To add this collection to your Node-RED just copy the JSON code from the link above and click on Import button from your Node-RED menu. Then just paste the copied text and click on the big red ‘Import’ button.
I will focus on the HTTP requests flow in Node-RED to control my Shelly Plus 1PM.
The only thing that you have to do is to edit the ‘function’ nodes.
Just replace the IP value with the IP of your Shelly device and then click on ‘Done’.
The last and the most fun part is to deploy the flow and after that you can click on the ‘Inject’ nodes to test your configurations.
You should be able to read the status, turn on/off and reboot the device.
My Discord server for you: [ Ссылка ]
DISCLAIMER
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
![](https://i.ytimg.com/vi/U245PWQ_yOQ/maxresdefault.jpg)