Coder Social home page Coder Social logo

Comments (5)

MiSchroe avatar MiSchroe commented on August 16, 2024

I would like to keep the interface as less specific as possible. The KLF200 supports all kind of devices, therefore "open" and "close" would work for windows and blinds, but not for lights, fans, etc.

If you need that specific functionality, you could use the script adapter (it should be possible with Blockly) to mimic that functionality or you could use a very basic NodeRED flow for it.

Currently, I don't see the difference in setting a value to 100% or 0% in comparison to setting a value to true.

What is your specific use case that can't be done with the current implementation?

from iobroker.klf200.

DcFamas avatar DcFamas commented on August 16, 2024

Hey Michael,
thanks for the lightspeedlike answer. :)

I know that I could realise this case with an script or in node-red. In my case I had an conversation with another developer. He told me that adapter in ioBroker use a standardized value of objects. For example the shelly adapter uses boolean to turn lights on and off. The mqtt api from shelly only supports "on" and "off" strings. So the developer there changed the on/off values to boolean that it fits in the ioBroker environment.

I have to use the objects in iQontrol. It would be easier to work with boolean, because this developer uses true/false for open and close.

My thought was just a suggestion, I can understand that you want to keep the api by velux clean. Isn't there an option to recognize that the product is a blind/window and add the additional datapoints?

Btw. I'm really grateful for the adapter. For about an year it is working like a charm for me. :)

from iobroker.klf200.

MiSchroe avatar MiSchroe commented on August 16, 2024

So, what would be the expected behaviour?

I guess:

  • set open to true -> set value to 100% and close to false
  • set close to ture -> set value to 0% and open to false
  • set value to 100%/0% -> set open/close like above
  • set value to greater than 0% -> I would assume open = true, close = false

from iobroker.klf200.

DcFamas avatar DcFamas commented on August 16, 2024

Hey Michael,
it would be:

  • press button "close" -> set targetPosition to 100%
  • press button "open" -> set targetPosition to 0%

I think for the most participants it is enough to have these datapoints.

Here is a screenshot of the shelly datapoints:
grafik

Best regards! :)

from iobroker.klf200.

MiSchroe avatar MiSchroe commented on August 16, 2024

Can be implemented using alias in ioBroker.

from iobroker.klf200.

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.