Closed jthun closed 1 year ago
Hi @jthun,
It looks like you cover Fibaro/FGRM222 device advertises "Uknown" state (not Open/Closed), and it relies on cover position property instead with [0..100] values.
I would expect the device to advertise its state properly, and if Fibaro cannot do it for any reason, I can add a heuristic algorithm to the QuickApp and replace "Unknown" state with Open/Closed depending on it's 0 or 100 numeric position.
Can you please clarify how cover device looks at your Home Assistant UI, can you manage cover position, and the only issue you have is the "Unknown" state label?
Does your cover support blinds/tilt positioning too?
Hi!
Hi @jthun,
Thank you. The JSON files that you shared earlier indicate the "Unknown" state for the cover. It looks like Fibaro UI renders Open/Closed label based on the cover position attribute [0..100], not based on the state attribute (like I do)
Can you please advise how your cover is rendered at Home Assistant UI (not at Fibaro UI)?
And when you use Home Assistant UI, and change the slider position for cover - do you see this change reflected at Fibaro?
Hi!
I use several different cards in Home Assistant, and they all say Unknown (Okänd in Swedish).
Fibaro is properly updated with slider position when I change it from Home Assistant, but the state never changes on either side.
I've checked the HC3/api/devices/DEVICE_ID endpoint, and it always says that state = Unknown, no matter what, so this problem is clearly on the Fibaro side of things.
I can implement the newer version of the QuickApp that will be broadcasting Open/Closed state based on the numeric position when Fibaro uses "Unknown" state.
You can test it later today/tomorrow.
Any progress on this? States in HA would be really nice to have.
Sorry, got the emerging priority/business trip to the United State, but hope to be back within 1-2 weeks time
Any progress on this. :) Would be handy...
I finished the implementation last week, but it didn't work as expected at my demo lab, so I continue debugging this Sunday and hope to come back with resolution
Will keep my fingers crossed!!
Hi @rwijbenga, @jthun,
I've finally got the implementation work in my local environment, and published new 1.0.232 version, please check it out and let me know if it works for you
Works here ! Super !! :)
Works really well! The only thing my HA complained about now was that the illuminance sensor had a unit of measurement = lux, when HA was expecting lx. I fixed that with self.bridgeUnitOfMeasurement = "lx"
on line 293 in device_api.lua.
Many thanks!
I'll change lux to lx and publish new version today/this weekend
Describe the bug Hi! To start with, I love this QA!
The cover state on all my covers, however, is always Unknown and never updated to Closed or Opened. The MQTT topic homeassistant/cover/732/events/fibaro => home assistant/value is properly updated when closing/opening, but homeassistant/cover/732/events/fibaro => home assistant/state never changes.
Environment:
MQTT Logs
config:
config_json_attributes: