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.

Lux operated lights flow

I have 8 Aeotec Multisensors 6's around the house and want to activate lights to come on between 09:00 and 22:00 if the light is say below 30lux or another preset figure.

Triggering the 4 lights to come on and then go back off if the light level rises above 45lux is easy and the flows work fine as they are. However my question is;

If lights come on at say 20:00 because of low light, and I switch them off using a wall switch if i go to bed at say 21:00, if the lux value drops again, say it goes from 15lux to 10lux, with this trigger the lights back on ? I think it will.

The same could be said for switching the lights on manually when the lux is above 45lux, the next change in Lux value if still above 45 would put the lights off?

Had the flows running a couple of days now and this has not happened yet, but not sure if it won't !

So do i need to put a variable in there to detect a Forced Off or even Forced On situation?

So, if time is between 09:00 and 22:00 and lux is lower than 35, and lights are on, and i switch them off, then Forced Off = True.
In the first flow below, the flow would check for a forced Off situation and leave the lights off till a further manual On, or the forced Off variable was reset at say midnight.

Still learning this Homey stuff so this may not be the best way to achieve what i am trying to do, all comments good or bad most welcome.

Andrew



Comments

  • patphotopatphoto Member
    edited August 2018
    Yeah, you could use the "better logic" app to place a variable.
    Or a countdown timer.
    Then if the timer runs, forced OFF is on/active.
    When the timer stops. its back to using the LUX for turning on/off the lamps.
  • A nice solution would be if it would be possible to give flows 'priority' levels. Manual switched is thus always higher in priority than a lux based flow. 
  • Eternity said:
    A nice solution would be if it would be possible to give flows 'priority' levels. Manual switched is thus always higher in priority than a lux based flow. 
    is that even possible ?

    A
  • With an other controller, this was possible. Not (yet) with Homey. 
  • fkeyfkey Member
    I think the state control app does what you want.
    the example with it looks a lot at what you want.
    forced off and give prio to a condition

    Explanation and example
    https://github.com/SergeRegoor/nl.regoor.statecontrol/wiki
    The app
    https://apps.athom.com/app/nl.regoor.statecontrol
  • fkey said:
    I think the state control app does what you want. No
    the example with it looks a lot at what you want.
    forced off and give prio to a condition

    Explanation and example
    https://github.com/SergeRegoor/nl.regoor.statecontrol/wiki
    The app
    https://apps.athom.com/app/nl.regoor.statecontrol
    But state control is a complex app that isn't updated to sdk2. 
    And the developer isn't active anymore.... It has ~200 installs but the current version isn't usable in Homey 2.0.
  • fkeyfkey Member
    @GeurtDijker that us realy usefull input! Just starting with Homey and playing around with apps, better stop spending time on this one....

    is there a way  for me to see if an app is updates to sdk2? And if users are still active?
  • fkey said:
    @GeurtDijker that us realy usefull input! Just starting with Homey and playing around with apps, better stop spending time on this one....

    is there a way  for me to see if an app is updates to sdk2? And if users are still active?
    There is no user friendly way to see that, 
    If you look in the public GitHub app repository you can see in the apps.json file if sdk2 is defined. But apps without that are sdk1  and still no problem if they don't have a settings page. Also some developers with affected apps are working hard on a update hopefully providing a seamless upgrade to a SDK 2 version before or just after the Homey firmware 2.0 goes live.

    BTW just found soesome in developers that is trying to update state control for his own usage. But still no guarantee!


    BTW 2 as moderator I think am going to spit this to a new thread...
  • rockhoppersrockhoppers Member
    edited August 2018
    Checked the apps.json file for this app and it appears not to be SDK2 compatible.
    Where would it be mentioned if it was, in the header part ?

    does this mean if i upgrade to Homey 2 when released and the app is not SDK2 compatible it will not work ?
    That's a big issue for me as i have several lightwave sockets around the house.

    Is there a way to get in touch with the author to see if he is still supporting this app ?

    Andrew
Sign In or Register to comment.