Macro IF, which can test Light overide mode state?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • marcuslee
    Automated Home Ninja
    • Dec 2009
    • 275

    Macro IF, which can test Light overide mode state?

    Hi All,

    Aim:
    Porch light is automated with dark and PIR presence to turn on.
    Want to have a DFPH button 3 when pushed, overrides Porch light to ON and the button LED is set to flashing to remind. Push DFPH button 3 again, it puts override back to NONE, and LED flashing extinguishes.

    I think this is best done with a macro, though I can't seem to get past:
    - needing one button to set override on, and a separate button to override NONE (I was hoping to just build it into a macro with an IF, so I can just use the one DFPH button)
    - also I don't think I'm able to set button 3 LED to flashing enabled/disabled by following any sort of OVERRIDE state for the lights. Nor can i seem to find anywhere that this can be even accessed to set??

    Any advice/insight/suggestions appreciated!
    Last edited by marcuslee; 8 November 2023, 11:46 PM.
  • Karam
    Automated Home Legend
    • Mar 2005
    • 860

    #2
    In this type of 'co-ordinate toggle set of functions' circumstance I tend towards using an intermediate flag. Generally use a dummy relay object set up as an on/off load object (not network enabled ) to act as such. You can create one starting with a legacy relay object for example. Possibly could also use a logic object but I like the floorplan visibility of state. Anyhow you can then toggle the state of the 'flag' using a single button and the on/off output connection outputs would then be used to to change the state of the LED flashing and light override values. Note that override and automation operating modes are controlled by parametric values, in other words you need to select a value setting connection. To get more details on what different values do probably best bet is go to a light object connections menu and click on help icon. Also, sometimes you have to check access to connections 'from the other end' if you can't find them from one side.

    Comment

    • marcuslee
      Automated Home Ninja
      • Dec 2009
      • 275

      #3
      Thanks Karam as always. Have got most of the way there following your tuition, except:

      LRN (Legacy Relay Node) object, On/Off load, Set On/Off (Output), doesn't seem to allow any Value connections (so I can set Value, override mode = 4 and 1). It's greyed out?

      Comment

      • Karam
        Automated Home Legend
        • Mar 2005
        • 860

        #4
        You should be able to access it from the light object's Override connections side. As a general comment: Connections are not always symmetrically accessible so always worth checking from the other end if can't be found from initial side.

        Comment

        • marcuslee
          Automated Home Ninja
          • Dec 2009
          • 275

          #5
          Ah that's it, the last bit of your advice above about 'from the other end'.

          Thanks Karam. One of these days I'll be able to follow your (or Viv's) advice without needing to come back with a follow up question!!

          Comment

          Working...
          X