Announcement

Collapse
No announcement yet.

Create flashing lights

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Create flashing lights


    #2
    You have to be very careful with this, it is possible but it is clearly not how HS was designed and as such just be mindful. You may also cause an increase in Z-Wave traffic that is not welcome either, I think this is how I did it last.

    Main Event

    Trigger: recurring every ten seconds
    Condition: flashing lamp on
    Actions:
    turn light on
    wait five seconds
    turn light off
    trigger event "flashing lamp condition check"

    flashing lamp condition check
    Trigger: Manually Triggered
    Actions: Run event - check conditions - Main event

    as such it should recur every ten seconds as long as flashing lamp device is on, turn the light on, turn it off after five seconds, then trigger itself again when the condition check gets called.

    Comment


      #3
      This is a slightly different take.

      Event to flash light.
      If a recurring trigger happens every 2 seconds.
      And If (a virtual device) is On
      Then: Turn on the light
      Then: Turn off the light after a delay of one second

      Event to Start the flashing.
      If this event is manually triggered
      Then: Turn on (the virtual device)

      Event to stop the flashing.
      If this event is manually triggered
      Then: Turn off (the virtual device)
      Mike____________________________________________________________ __________________
      HS3 Pro Edition 3.0.0.548, NUC i3

      HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

      Comment


        #4
        Originally posted by Uncle Michael View Post
        This is a slightly different take.

        Event to flash light.
        If a recurring trigger happens every 2 seconds.
        And If (a virtual device) is On
        Then: Turn on the light
        Then: Turn off the light after a delay of one second

        Event to Start the flashing.
        If this event is manually triggered
        Then: Turn on (the virtual device)

        Event to stop the flashing.
        If this event is manually triggered
        Then: Turn off (the virtual device)
        That's what I do for Halloween lighting
        cheeryfool

        Comment


          #5
          Ok, one more way but relies on using the EasyTrigger plug-in:

          Create a timer, call it FlashTimer.

          BlinkLight:

          if FlashTimer becomes 2 seconds
          Then Toggle Device X between Off & On (EasyTrigger)
          Then Restart timer FlashTimer

          To start blinking Restart Timer FlashTimer
          To stop blinking stop the timer FlashTimer

          This is basically what I use although I've removed a few bells & whistles. There's a slight hole in this if you stop the FlashTimer exactly when it hits 2 seconds which is part of the bells and whistles stuff. You can code around that.
          Last edited by andyf; December 20, 2017, 05:15 PM.

          Comment


            #6
            Thank you guys, I really appreciate the help. You've gotten me out of a real jam.

            Comment


              #7
              I misread the subject of this post as "Create Fishing Lights" which got me excited. But flashing lights is something else I wanted to do, and this thread gave me some good ideas. Now on to thinking about fishing lights....
              HS Pro 3.0 | Linux Ubuntu 16.04 x64 virtualized under Proxmox (KVM)
              Hardware: Z-NET - W800 Serial - Digi PortServer TS/8 and TS/16 serial to Ethernet - Insteon PLM - RFXCOM - X10 Wireless
              Plugins: HSTouch iOS and Android, RFXCOM, BlueIris, BLLock, BLDSC, BLRF, Insteon PLM (MNSandler), Device History, Ecobee, BLRing, Kodi, UltraWeatherWU3
              Second home: Zee S2 with Z-Wave, CT101 Z-Wave Thermostat, Aeotec Z-Wave microswitches, HSM200 occupancy sensor, Ecolink Z-Wave door sensors, STI Driveway Monitor interfaced to Zee S2 GPIO pins.

              Comment


                #8
                There might be some ideas, here, from Homeseer:

                https://www.youtube.com/watch?v=aFTLLgg6FAU
                HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
                Home Assistant 2024.3
                Operating System: Microsoft Windows 11 Pro - Desktop
                Z-Wave Devices via two Z-Net G3s
                Zigbee Devices via RaspBee on RPi 3b+
                WiFi Devices via Internal Router.

                Enabled Plug-Ins
                AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0

                Comment


                  #9
                  I used the recurring trigger and it works great. Thanks guys

                  Comment

                  Working...
                  X