This is just to make you know that I started to develop a custom-component for Shelly Cloud devices.
My idea was to be as much conservative as possible.
Iâm aware that Shelly devices are awesome: they support LAN discovery, provide local monitor and control (Mqtt, CoAP), etc. The problem is that I wanted a stand-alone custom-component, I wanted to maintain the Cloud service (you lose it activating Mqtt on the devices) and I needed to handle battery-enabled devices (that require a minimum amount of network interactions).
The only solution I found was to interact with the Shelly Cloud server to discover the devices, monitor their status and control the switching functionalities (on/off).
You can enjoy the custom-component here: https://github.com/vincenzosuraci/hassio_shelly_cloud.
In case of any issue, please, open a new issue directly on Github (follow the above mentioned link).
Regards,
Vincenzo
Hello,
I am getting the following error after months without issues: âIntegration shelly not found when trying to verify its switch platform.â
I am using this code:
- platform: shelly
switches:
shelly_switch:
name: "Sala - Luzes"
path: /relay/0 (optional, defaults to /relay/0)
host: xxx.xxx.xxx.xxx
username: xxxxxxx
password: xxxxxxx
Anyone with this problem?
Thanks Vincenzo, I got your custom component installed last night on 0.91.3 and itâs working great (just needed a couple of restarts)
Hello everyone, just got a couple of Shelly 1pm and Shelly 2.5 and Iâm wondering how you guys are you using those to measure energy consumption.
Iâve read that shellies report energy in Watt-Minute every 30s. Does anyone have a solution to convert it to kwh and keep a track of it with utility_meter?
Thank you all!
Hi,
for shelly 2.5 you can check this out:
https://shelly-api-docs.shelly.cloud/#shelly2-5-mqtt
I canât find anything for Shelly 1pm. I just bought 2 of them but I cannot measure power consumption. Any idea?
Thanks
With this script energy sensor is in kWh. But Shellies reset this meter on every reboot. You can use power sensor, integration sensor and utility_meter:
sensor:
- platform: integration
source: sensor.shelly2_5b2604_power
name: 'Shelly Energy'
unit_prefix: k
round: 2
utility_meter:
energy_shelly2_monthly:
source: sensor.shelly_energy
cycle: monthly
Hi gekomax,
Shelly 1pm works almost exactly as Shelly 2.5, follow my configs for both switch and sensors:
Closet AC Shelly Instant Power
- platform: mqtt
name: "Closet AC Instant Power"
state_topic: "shellies/shelly1pm-YOUSHELLYRID/relay/0/power"
unit_of_measurement: "Watts"
Closet AC Shelly Instant Power
- platform: mqtt
name: "Closet AC Energy"
state_topic: "shellies/shelly1pm-YOUSHELLYRID/relay/0/energy"
unit_of_measurement: "Wm"
Shelly 1PM AC Switch
- platform: mqtt
name: âCloset ACâ
state_topic: âshellies/shelly1pm-YOUSHELLYRID/relay/0â
command_topic: âshellies/shelly1pm-YOUSHELLYRID/relay/0/commandâ
qos: 1
payload_on: âonâ
payload_off: âoffâ
retain: true
Thanks!