Git Product home page Git Product logo

Comments (5)

gjniewenhuijse avatar gjniewenhuijse commented on July 16, 2024

I think now its better to use script below to solve this:

"ServiceType": "GarageDoorOpener",
                    "ServiceName": "Garagedeur",
                    "Characteristics": [
                        {
                            "Type": "TargetDoorState",
                            "Set": [
                                "10/2/1"
                            ],
                            "Listen": [
                                "10/2/2"
                            ]
                        },
                        {
                            "Type": "CurrentDoorState",
                            "Listen": [
                                "10/2/2"
                            ]
                        }
                    ],
                    "KNXReadRequests": [
                        "10/2/2"
                    ]

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Sorry for the late response! I was off to the real world.
Your solution is quite ok, but has one major drawback: if the app you're using sends multiple TargetPositions in a fast sequence, you might also trigger multiple CurrentPosition responses. The effect would be that the control on the screen (slider for example) is not moving smoothly but start to stutter- that's why the handler has a little timer build in to suppress setting TargetPosition to KNX responses if they come a short time after issuing a TargetPosition to the bus.

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

Forget my previous answer. I was thinking of a window covering type, and you were talking about a garage door opener - didn't match. Your solution is perfectly fine!

from homebridge-knx.

migabc avatar migabc commented on July 16, 2024

Hi
I'm having the same problem.
My garagedoor icon keeps showing "Opening..." or "Closing..." indefinitely
It works OK (meaning I can actually open and close the gate) - it's just the icon that keeps stuck in a wait state ...

Here's my code.

            {
                "ServiceType": "GarageDoorOpener",
                "ServiceName": "Front Gate",
                "Characteristics": [
                    {
                        "Type": "TargetDoorState",
                        "Set": [
                            "7/1/11"
                        ],
                        "DPT": "DPT1",
                        "Reverse": true,
                        "Listen": [
                            "7/1/11"
                        ]
                    },
                    {
                        "Type": "CurrentDoorState",
                        "Listen": [
                            "7/1/11"
                        ]
                    }
                ],
                "KNXReadRequests": [
                    "7/1/11"
                ]
            },

Any help on this?

P.S.
My gate only has one Knx address (7/1/11) and is binary
1 -> Open
0 -> Close

Thanks for any help

from homebridge-knx.

snowdd1 avatar snowdd1 commented on July 16, 2024

See #91

from homebridge-knx.

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.