This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Provide door sensor status on leaving the house

p0ntsp0nts Member
edited August 2015 in Archive

for my homewizard i've writen a small script in bash that sends me an alert as soon as a door or window is still open when I activate the away preset.

It would be nice for the homey to say which door or window is open after telling homey you are leaving the house, just like the example you've provided in a video with the umbrella.

Comments

  • It will be great as homey can open or close the windows.
    But I can't find a device that can do that.
    Only the axa remote but that's only for smal windows.

  • Thats not what in meant here, as soon as you want to leave the house you tell homey you are leaving. In the introduction video the homey said back to take an umbrella because it was going to rain. I would also like to have homey tell me if i forgot to close a window for example in a bedroom.

    Dont forget to take an umbrella, it is going to rain ... Oh btw, the window in your bedroom seems to be open, are you sure thats alright?

  • EmileEmile Administrator, Athom

    Ah. Yeah that's easy. 'When you're leaving, and [window sensor x] is open, then say "Hey, your window's still open!"'

  • p0ntsp0nts Member
    edited August 2015

    That is actualy just possible on the fly? I love it!

    The homewizard cant do a if > and > then statement but only if > then.

    Cool to see that it will be possible with the homey

  • @emile
    Is it also possible to check a group of devices?

    ['window front first floor','window back first floor','xxxx']

  • Can someone show me the easy way(Emile is talking about) to do this with a Zwave+ Fibaro door/window sensor?
  • PeaoPeao Member
    TRIGGER (when):
    Presence-Card:  X left home
    CONDITION (and):
    Fibaro Door Sensor-Card: Sensor is open
    ACTION (then):
    Mobile-Card: send notification "Sensor is open"
  • I know that would do the trick. But I don't have 'and' conditions for my Fibaro sensor only 3 'when' conditions. In dutch:

    Het accuniveau is veranderd, Het contactalarm gaat uit, Het contactalarm gaat aan.

  • PeaoPeao Member
    Oh sorry, I didn't tried it by myself.

    I think that this should be a built-in flow card  :/

    Here is a workaround:
    You will need three flows instead of one. The main flow is:

    TRIGGER (when):
    Presence-Card:  X left home
    CONDITION (and):
    Logic-Card: "A variable is equal to [VAR] [1]"
    ACTION (then):
    Mobile-Card: send notification "Sensor is open"

    And with the second and third flow you create this variable:

    TRIGGER (when):
    Fibaro Door Sensor-Card: Sensor is open

    ACTION (then):
    Logic-Card: Set variable [VAR] to [1]

    And the third flow:

    TRIGGER (when):
    Fibaro Door Sensor-Card: Sensor is closed

    ACTION (then):
    Logic-Card: Set variable [VAR] to [0]


    I didn't tried this, but it should work. You could also use the better logic app, but I don't think that there is a huge difference.
  • it is strange that it's not a default card, since 433 (KaKu) is using the same capability but it can be used in the [AND] collumn
  • I've been trying to create a flow, with the same sensor, to give a warning when the door is not closed in 3 minutes.
    Maybe it is possible to set the time in a variable when the door opens, add three minutes and then set an alarm at the time of the variable.
    Any suggestions would be appriciated.
  • caseda said:
    it is strange that it's not a default card, since 433 (KaKu) is using the same capability but it can be used in the [AND] collumn
     I wonder if it's the Z-Wave driver or Homey core is responsible for this?
  • caseda said:
    it is strange that it's not a default card, since 433 (KaKu) is using the same capability but it can be used in the [AND] collumn
     I wonder if it's the Z-Wave driver or Homey core is responsible for this?
    the capabilities are not altered by the z-wave driver, i think it has been added manually in the KaKu app, which could also be done in the Z-Wave apps for the door/window sensors.

    But i don't think that is a proper solution, the capabilities are there to create apps easier, so that card should be added to the capabilities of any alarm, not even just the contact alarm.
  • Peao said:
    Great! Thanks. I'll give it a try.
  • Peao said:
    Oh sorry, I didn't tried it by myself.

    I think that this should be a built-in flow card  :/

    Here is a workaround:
    You will need three flows instead of one. The main flow is:

    TRIGGER (when):
    Presence-Card:  X left home
    CONDITION (and):
    Logic-Card: "A variable is equal to [VAR] [1]"
    ACTION (then):
    Mobile-Card: send notification "Sensor is open"

    And with the second and third flow you create this variable:

    TRIGGER (when):
    Fibaro Door Sensor-Card: Sensor is open

    ACTION (then):
    Logic-Card: Set variable [VAR] to [1]

    And the third flow:

    TRIGGER (when):
    Fibaro Door Sensor-Card: Sensor is closed

    ACTION (then):
    Logic-Card: Set variable [VAR] to [0]


    I didn't tried this, but it should work. You could also use the better logic app, but I don't think that there is a huge difference.

    Thanks, works like a charm.
This discussion has been closed.