faune / homebridge-grohe-sense

Grohe Ondus Sense
Apache License 2.0
9 stars 4 forks source link

Control Sense Guard switch #12

Open jimmykarlsson opened 3 years ago

jimmykarlsson commented 3 years ago

I don't know if it's by design but you can't build and automation to turn off the main water automatically if a leakage is detected. In order to do this the Guard switch needs to be separated from the other sensors so it can be toggle on/off as an own switch otherwise you can only control the main water inlet manually.

faune commented 3 years ago

I think this is due to a recent change in homekit, where devices with multiple sensors are grouped by default. But i see how this is a problem if you have non-grohe leak sensors. Will investigate if there is something I can do.

faune commented 3 years ago

Solving this will require quite some refactoring, but I will put it on my todo list. Its quite stupid that Homekit has this limitation, but I think I know what needs to be done.

faune commented 3 years ago

If you would like to try out this feature, I have pushed a new feature branch which splits the sense guard switch from the sensors: https://github.com/faune/homebridge-grohe-sense/tree/feature/split-water-control

This is work in progress, but would be nice to hear if this solves your problem before spending more time on this.

jimmykarlsson commented 3 years ago

Great! Of course but how do I install a new feature branch?

faune commented 3 years ago
  1. git clone https://github.com/faune/homebridge-grohe-sense
  2. cd homebridge-grohe-sense
  3. git checkout feature/split-water-control
  4. npm install
  5. npm run build
  6. npm link
  7. homebridge -I -D
mrazon87 commented 3 years ago

Hi faune,

tested and Grohe Sense Guard (close/open valve) switch works in Homebridge and Home.app, but somehow the switch is not able to use as switch in Home.app automation, as it says that the Guard in not a switch, but a sensor.

Is there a plan to fix this?

Many thanks

mrazon87 commented 3 years ago

I did a workaround via Node-Red 👍