Giter Site home page Giter Site logo

Comments (15)

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024 1

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.

from hc3-to-mqtt.

jthun avatar jthun commented on August 16, 2024 1

Any progress on this? States in HA would be really nice to have.

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

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.

  1. 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.

  2. 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?

  3. Does your cover support blinds/tilt positioning too?

from hc3-to-mqtt.

jthun avatar jthun commented on August 16, 2024

Hi!

  1. In Fibaro it says "Closed" or "Opened", together with the percentage (99%). I can control it properly from Fibaro (and from HA), but it won't open 100%, only 99%. The only issue is the state change in HA since the MQTT state topic is not updated. The percentage is sent properly to the fibaro => home assistant value topic.

image

image

  1. Not that I know of. I only have vertical blinds and awnings. Like these ones.

image

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

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?

from hc3-to-mqtt.

jthun avatar jthun commented on August 16, 2024

Hi!

I use several different cards in Home Assistant, and they all say Unknown (Okänd in Swedish).

image

image

Fibaro is properly updated with slider position when I change it from Home Assistant, but the state never changes on either side.

from hc3-to-mqtt.

jthun avatar jthun commented on August 16, 2024

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.

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

Sorry, got the emerging priority/business trip to the United State, but hope to be back within 1-2 weeks time

from hc3-to-mqtt.

rwijbenga avatar rwijbenga commented on August 16, 2024

Any progress on this. :) Would be handy...

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

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

from hc3-to-mqtt.

rwijbenga avatar rwijbenga commented on August 16, 2024

Will keep my fingers crossed!!

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

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

from hc3-to-mqtt.

rwijbenga avatar rwijbenga commented on August 16, 2024

Works here ! Super !! :)

from hc3-to-mqtt.

jthun avatar jthun commented on August 16, 2024

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!

from hc3-to-mqtt.

alexander-vitishchenko avatar alexander-vitishchenko commented on August 16, 2024

I'll change lux to lx and publish new version today/this weekend

from hc3-to-mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.