Shellies Discovery Script

New version: 0.10.4

Changelog:

  • black formatting
  • fix device_class for ShellyEM sensors - @Hero80 and @bruert please confirm that fix works)

Now it works correctly. Thank you!

1 Like

Some improvement but I’m still missing [energy 0 & 1] & [reurned_energy 0 & 1]. Maybe the problem is at my end?

As far as I know, ShellyEM sends only power, reactive power and voltage data via MQTT.

These are the MQTT topics I can see in MQTT_Explorer
image

1 Like

ShellyEM has relay? What it controls? Energy is in Wmin?

It has an output to control a contactor/relay, ref https://shelly.cloud/shelly-energy-meter-with-contactor-control-wifi-smart-home-automation/
Energy is measured in Wh

Thanks for info. Are you sure that energy is in Wh? Every other Shellies send energy via MQTT in Wmin.

I only installed the ShellyEM yesterday in my switchboard so I haven’t had a chance to confirm Wh, I believe I may have read that it was Wh on the Shelly Facebook Forum? I will do some checking when I have some time.

New version: 0.11.0

Changelog:

  • remove custom_updater support
  • add Shelly Flood support (experimental)
  • add relay, relay’s sensors and emeter’s sensors for ShellyEM (experimental)

New version: 0.11.2

Changelog:

  • change expire_after to 12h for battery powered sensors (forced by Shellies firmware 1.5.1)

Hello thank u so much for your work!

well my problem is that the mosquito broker shows new connection with the shelly’s 2.5 ip and the port but the broker intergration is empty! and in configuration.yaml I set ( mqtt: broker: ip port: and discovery true and prefix) too. I am on hassio 0.97.2
where should I put the script? in config / automation.yaml?

You have to save shellies_discovery.py file to /config/python_scripts folder, add automation rules to automations.yaml file and add python_script: to your configuration.yaml file.

I am trying it now :):star_struck: my samba takes 5 times to get my pass authorization says, I forgot interface eth0 in conf :stuck_out_tongue_winking_eye:

unfortunately
The following components and platforms could not be set up:

Please check your config.

just python_script: in conf.yaml? or python_script: true?

ok I put just python_script: and now only automation gives notification

Just worked!!! I had wrong in my automation.yaml :smiley:
I had put the relays in the bottom of the page. I just delete. restarted and VOILA!
thank you so much

are the kwh real value , also is Celsious real value too?

Yes. Script change Wmin from Shellies to kWh.

perfect and how about temperature … I got 67 is this C? or F? I change it from F to C !
hm if thi is Celsious is so high