Enable action execution via MQTT
username = “” # not set yet
password = “” # not set
Server: <MQTT_broker_IP>:1833
Use custom MQTT prefix: shellydimmer2/outdoor/kitchen
Min reconnect timeout: 2
Max reconnect timeout: 60
KeepAlive: 10
Clean Session
Retain
Max QoS: 0
My problem is, when I restart home assistant, the entities are shown with state “unavailable” in Developer Tools. And they stay that way until I restart the shelly 2 dimmer via its webinterface.
Is anyone else aware of this issue? Are my settings somehow bogus?
I’m having the same problem with all of my shellies. What is your home assistant version? I don’t think I used to have this problem. Since I upgraded to 0.115 this started.
I’m currently running on 0.114 and this is the version were I got my first Shelly Dimmer2. My other Shelly’s are running ESPHome, but this AFAIK not yet possible for the Dimmer2.
I found two workarounds for this. One is “rather elegant” but only works for 2/3 of my Shelly Dimmer2, the other one is a little crude …but works
The basic idea is to use an automation that triggers when Home Assistant has started. The elegant way is to publish a command to the Shellys to have them update their status.
(I have this commented out in my .yaml but you’ll get the idea)
The crude one works since the values are also updated in Home Assistant when you set a value via the REST API. So I change a value and change it back again:
At least the Tags “Mobile Apps” and “Home Assistant Companion for Android” are wrong. I was about to ask a question about that, but it turned out, the Android tablet itself was the problem. I didn’t realize this when I posted this question.