isalkind / homebridge-away-mode

Homebridge plugin that provides triggers to turn on and turn off lights to simulate occupancy.
MIT License
26 stars 5 forks source link

Enhancement #4

Closed jorgdeboer closed 4 years ago

jorgdeboer commented 4 years ago

First of all, thanks for the perfect plugin and the updates, really appreciated!

I have one additional setting which might be usefull. Would it be possible to have a min/max on and off time per sensor? In some rooms (eg. hallway) I usually stay for 1-2minutes. Other rooms (eg. Living room) I stay for multiple hours. This would require different min/max on/off time per sensor right?

Thanks!

isalkind commented 4 years ago

I’m glad it works for you!

Let me think about your request. Seems like a reasonable thing to do. It could be done with multiple “away mode” accessories today, but it may be more elegant as you described.

jorgdeboer commented 4 years ago

Perfect, I’ll use your solution in the meantime.

isalkind commented 4 years ago

@jorgdeboer I just pushed a release that includes the enhancement you were looking for. You can now configure the min/max on and off times on a per-sensor basis. See the new 'sensors' configuration parameter. Hope this works for you. Let me know if you have any questions.

jorgdeboer commented 4 years ago

Wow, very nice!

I’ll try it out tomorrow and definitely let you know.

Thanks!

jorgdeboer commented 4 years ago

Couldn’t wait so I just tested it and seems to be working like a charm. Thanks!!

isalkind commented 4 years ago

Excellent. I'll close this issue now.