Coder Social home page Coder Social logo

Comments (9)

EjvindHald avatar EjvindHald commented on July 19, 2024

It seems that the valveType has no effect on the icon shown in Homekit app.

from homebridge-openhab2-complete.

steilerDev avatar steilerDev commented on July 19, 2024

The last part about the valveType seems to be a limitation of either HomeKit at the moment and/or the HomeKit Accessory Protocol implementation used by homebridge.

When pressing on the item and it is showing "Starting...", is the state of the item within openHAB changed or not?

Could you please perform the action and paste your HomeBridge debug log?

from homebridge-openhab2-complete.

EjvindHald avatar EjvindHald commented on July 19, 2024

I am on vacation with no access to my stuff, so the log will have to come later. Meanwhile, I recall that the state of the openHAB item is not changed when using the homekit app.

If the valveType is not working then you might consider to remove that part from the documentation.

from homebridge-openhab2-complete.

jjkrol avatar jjkrol commented on July 19, 2024

I have a similar problem - I am using accessory type: "valve". When I turn on the valve, the icon says "starting...", but there is no effect in openhab. When in debug mode, after turning the valve on in Home, I see the following lines in the homebridge log:

Accessory [Homebridge] Processing characteristic set: [{"aid":12,"iid":11,"value":1}] +3ms
Accessory [Homebridge] Setting Characteristic "Active" to value 1 +2ms

But in contrary to other accessories, they're not followed by any logs from the openhab plugin - like the change is somehow not picked up.

Is there any way I can make it work?

Relevant part of config:


{
      "type": "valve",
      "items": [
      {
           "name": "Sprinkler back",
           "activeItem": "vGA_SP_sprinkler_1",
           "inUseItem": "GA_SP_sprinkler_1"
       },
       ....
       ]
}

from homebridge-openhab2-complete.

steilerDev avatar steilerDev commented on July 19, 2024

Good catch. I seem to have implemented only a sensor characteristic, where an actor characteristic is required. I am working on this.

from homebridge-openhab2-complete.

BernhelmB avatar BernhelmB commented on July 19, 2024

I ran into the same issue here.

{
"name": "Bewässerung Hecke",
"type": "valve",
"activeItem": "Garten_Hecke_Bewaesserung_Schalter",
"inUseItem": "Garten_IC_Hecke_Bewaesserungstimer",
"durationItem": "Garten_Hecke_Bewaesserung_Zeitprogramm_s"
}

It is registering the characteristic

Accessory [Homebridge] Registering Characteristic "Active" for events
Accessory [Homebridge] Registering Characteristic "In Use" for events
Accessory [Homebridge] Registering Characteristic "Valve Type" for events
Accessory [Homebridge] Registering Characteristic "Set Duration" for events
Accessory [Homebridge] Registering Characteristic "Remaining Duration" for events

and when I try to turn it on (or off) with homekit, it is the same

Accessory [Homebridge] Processing characteristic set: [{"aid":13,"iid":11,"value":1}]
Accessory [Homebridge] Setting Characteristic "Active" to value 1
EventedHTTPServer [::ffff:192.168.178.73] Muting event '13.11' notification for this connection since it originated here.
EventedHTTPServer [::ffff:192.168.178.69] Sending HTTP event '13.11' with data: {"characteristics":[{"aid":13,"iid":11,"value":1}]}
EventedHTTPServer [::ffff:192.168.178.73] HTTP Response is finished

In Openhab log, nothing occurs

In the other direction it is working (as you said, the sensor characteristic is doing well), so when I change the state in Openhab, I can see it in Homekit correctly.

The durationItem is working properly, too. The item in Openhab changes when I change the time in Homekit.

A slightly other behaviour is when I try using the irrigation instead of the valve. With that in the config.json I only get a status symbol in Homekit and no menu behind where I find the switch or the durationItem.

If I can help testing something, please comment my post.

from homebridge-openhab2-complete.

steilerDev avatar steilerDev commented on July 19, 2024

This should be fixed in 0.10.3, which I will release until end of week (hopefully, sorry for the long wait!!!)

from homebridge-openhab2-complete.

steilerDev avatar steilerDev commented on July 19, 2024

If you want, you can check out my latest commit 5a6fb44

from homebridge-openhab2-complete.

steilerDev avatar steilerDev commented on July 19, 2024

Now works (fbe702a)

from homebridge-openhab2-complete.

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.