does someone know if it’s possible to report the position of the blinds (or in my case it’s a roof hatch) with a Shelly Plus 2PM and ESPHome?
I’d like to avoid repeating the mistake I did with the blinds, I used a z-wave switch from Technisat which is not reporting the position. Hence, every time someone uses the switch manually, Home Assistant has no idea what the actual position of the blinds are and changing the position using Home Assistant will require to first open all the way or close of the way and then set to the new desired position…
Hey there,
does not have something to do with ESPhome, but my shelly plus 2 PM does not have entities called “cover position”.
Where could i find them?
I got it while reading more about state objects, so I’ll share for next ones wondering
the “global” status is the state of cover.<device_name>
the position is a state attribute of this object, it is in cover.<device_name>.current_position
You can see all of this in Developper tools > State.
To be able to manipulate easier the position, we’d like to make a distinct sensor object where the entity would be sensor.<device_name>_position and the value would be the position.
For the sake of the experiment, I’ve been setting the following template in configuration.yaml file.
This well creates a state with the right value, but doesn’t attach it to the device.
I don’t think that’s possible to attach a custom entity to a device, but if someone could confirm so I can stop searching about it that would be pretty nice
Edit: it seems that it’s somehow possible using this custom HACS integration but seems to act at quite low level and might break some core config, I’d love a native way to do it.
The topic of attaching custom objects to a device seems heated in the community.