Shellies Discovery Script

New version: 0.5.2

Changelog:

  • fix energy and power sensors per channel for Shelly2.5 (firmware 1.4.9-hotfix3 required)

hi there
i am getting this:
1555708733: |-- url=http://127.0.0.1:8080/superuser
1555708733: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid=
1555708733: |-- aclcheck(homeassistant, homeassistant/sensor/shellyswitch25-745583-power-0/config, 2) SUPERUSER=Y by http
1555708733: |-- Cached [8FAF1EE9FECD4A4AE9EAA481207B0D021749FE3E] for (client id not available,homeassistant,2)
1555708733: |-- mosquitto_auth_acl_check(…, client id not available, homeassistant, homeassistant/sensor/shellyswitch25-73C369-energy-0/config, MOSQ_ACL_WRITE)
1555708733: |-- url=http://127.0.0.1:8080/superuser
1555708733: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid=
1555708733: |-- aclcheck(homeassistant, homeassistant/sensor/shellyswitch25-73C369-energy-0/config, 2) SUPERUSER=Y by http
1555708733: |-- Cached [B6770B6E81BFBF31613F1CA6C951D8C6E2039D39] for (client id not available,homeassistant,2)
1555708733: |-- mosquitto_auth_acl_check(…, client id not available, homeassistant, homeassistant/sensor/shellyswitch25-745583-energy-0/config, MOSQ_ACL_WRITE)
1555708733: |-- url=http://127.0.0.1:8080/superuser
1555708733: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid=
1555708733: |-- aclcheck(homeassistant, homeassistant/sensor/shellyswitch25-745583-energy-0/config, 2) SUPERUSER=Y by http
1555708733: |-- Cached [A698EDED0429C0B4B3681C064AAEA5E257D8FE69] for (client id not available,homeassistant,2)
1555708733: |-- mosquitto_auth_acl_check(…, client id not available, homeassistant, homeassistant/sensor/shellyswitch25-73C369-temperature-0/config, MOSQ_ACL_WRITE)
1555708733: |-- url=http://127.0.0.1:8080/superuser
1555708733: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid=
1555708733: |-- aclcheck(homeassistant, homeassistant/sensor/shellyswitch25-73C369-temperature-0/config, 2) SUPERUSER=Y by http
1555708733: |-- Cached [68ECFB06E0C96B4E1D08D4EC707E5C409815158E] for (client id not available,homeassistant,2)
1555708733: |-- mosquitto_auth_acl_check(…, client id not available, homeassistant, homeassistant/switch/shellyswitch25-73C369-relay-1/config, MOSQ_ACL_WRITE)Preformatted text

what i am doing wrong? can you help? thanks

I thint that you have incorrect MQTT configuration.

Hi
My setup is working with all my mqtt devices. Also works with shelly but not with your addon… but would like to use it. Can you help me.?

Sorry, I don’t use hass.io. Send me your MQTT Shellies discovery topics and I will check them.

New version: 0.6.0

Changelog:

  • add support for Shelly Sense
  • add support for Shelly Smoke
  • List item

hi there. here is my setup:

{
“logins”: [
{
“username”: “Mosquitto”,
“password”: “mosquitto”
}
],
“anonymous”: false,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

on shelly i have:

@mclaudiopt Use for example MQTT.fx and show me your MQTT retained topics.

Will there be support for Shelly 1PM?
Can i give you any logs or info from my Shelly 1PM so you can add it?

There is currently no informatoion about Shelly 1PM on the Shelly API website. If you send me information about the topics that it sends to the MQTT broker I will try to add it to the script.

New version: 0.7.0

Changelog:

  • add support for Shelly RGBW2
  • fix temperature sensor for Shelly2.5

Here are some:
https://privatebin.net/?6367bb3b0e6f6b2c#zN9NnQuquP44Vb8/vKX2M2HKt6pEBTB0rIY8apbL2Sg=

1 Like

Overtemperature is a binary sensor? 0 and 1 value?

New version: 0.8.0

Changelog:

  • add support for Shelly1PM
1 Like

No idea, have only seen 0 value

We have to wait for official documentation with this.

Yes, i asked the Shelly team on facebook today, and they said that the documents would be updated “soon”

Yes, few days ago I heard the same answer.

The temperature dont seem to be picked up from mqtt?

Screenshot_Grantek_2019-04-25%2013_02_48
The temp is not reported as often, but if i power off and then power on the device i see in the mqtt stream the temp, but it’s not picked up by the script added temp sensor.

And is there a way for home assistant to remember the relay state when you restart home assistant?
Now it says off after restart even if it is on?