Giter Club home page Giter Club logo

Comments (6)

justme-1968 avatar justme-1968 commented on September 26, 2024 1

the readme was not up to date. the current list ist security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock and every known homekit service type from hap-nodejs/lib/gen/HomeKitTypes.js even if it is not in the list.

window is for electric windows. that is not what you want. you want a contact or ContactSensor.

then in homekitMapping you have to map ContactSensorState to something like this:

  ContactSensorState=contact,values=/^closed/:CONTACT_DETECTED;/.*/:CONTACT_NOT_DETECTED

if you also add a mapping for CurrentDoorState you will get a more intuitive display in eve and home and kann even ask siri vor opened or closed doors and windows:

  CurrentDoorState=contact,values=/^closed/:CLOSED;/.*/:OPEN

adjust the reading name and values according to your device.

from homebridge-fhem.

justme-1968 avatar justme-1968 commented on September 26, 2024 1

check the console output of homebridge, try eve and tap the warning triangle. there should be a better error message.

remove the mapping and check if it works again.

start homebridge with --debug and compare the output for the max sensor to the one you configured.

from homebridge-fhem.

tobiasmuecksch avatar tobiasmuecksch commented on September 26, 2024

@justme-1968 Thank you for the reply. I'm working on trying your solution. But somehow, I broke my home bridge. There is no error on the console, but in my home app for all devices there is a red notice "No Response"...

from homebridge-fhem.

tobiasmuecksch avatar tobiasmuecksch commented on September 26, 2024

@justme-1968 Thank you very much. It works 😃!

Just FYI, how i fixed my home bridge:
I had to delete all folders in ~/.homebridge/ (what basically kills the cache).

from homebridge-fhem.

tobiasmuecksch avatar tobiasmuecksch commented on September 26, 2024

One more question:

I tried to add the CurrentDoorState. But when I startup home bridge this error is on the console:

[2016-09-30 14:42:17] [FHEM]   value: Unknown command {ReadingsVal("CLOSED, try help.Unknown command /.*/","OPEN","")}, try help.

  2016-09-30 14:42:17 caching: CLOSED;/.*/-OPEN: Unknown command {ReadingsVal("CLOSED, try help.Unknown command /.*/","OPEN","")}, try help.

This is my homebridgeMapping (separated by one blank space):
ContactSensorState=basicSet,values=/^.*0/:CONTACT_DETECTED;/.*/:CONTACT_NOT_DETECTED CurrentDoorState= basicSet,values=/^.*0/:CLOSED;/.*/:OPEN

from homebridge-fhem.

tobiasmuecksch avatar tobiasmuecksch commented on September 26, 2024

I already found it. Sorry! There was a blank space before "basicSet".

from homebridge-fhem.

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.