Announcement

Collapse
No announcement yet.

Set (virtual) device value to timer?

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

    Set (virtual) device value to timer?

    I think (?) I should be able to do this using EasyTrigger. I created a virtual device and an event (currently manually triggered). But, the virtual device doesn't update to the timer's value when I run the event.

    Is this possible to do? If so, what am I doing wrong?
    Attached Files

    #2
    Well, I kinda answered my own question. The problem is that the time comes in as a non-numeric value.

    Any other way to do this?
    Attached Files

    Comment


      #3
      Here's my shower timer

      Rich wrote this little routine for me to assign the value of a timer ("Shower") to a virtual device ("Shower Time" with Reference ID of 98). Then I created a virtual event to run the script every 2 seconds. It works but you'll end up with a lot of log entries when it runs!

      Would be great if timers and counters behaved like devices but that's not how they were designed...
      Attached Files
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #4
        depending on what you want to do, I could modify the "Set Device to Variable" action so that it would be capable of parsing timers as a number of seconds and would set the device value with that number.

        or I could add a "Set device string to variable" action which would set the device string. It would be the equivalent of Mark's suggestion above.

        what's your use for such a virtual device? maybe you could also use directly the native trigger "A Timer' s value is" ?

        Comment


          #5
          For me, I needed a way of displaying timer values in hstouch since there's no way to do this natively.

          Sent from my Nexus 4 using Tapatalk
          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

          Comment


            #6
            Thank you all for the replies. Yes, my usage scenario is exactly MacroMark's -- I want to show the timer value in HSTouch.

            If it's not too hard to add this into EasyTrigger, that would be awesome! I haven't played with the script just yet -- presumably it works with Linux, too?

            Comment


              #7
              in version 3.0.0.15 I have added the "Set device's string" action. The string can contain replacement variables.

              so for your timer example you could do something like:
              Click image for larger version

Name:	setdevice string.jpg
Views:	2
Size:	21.1 KB
ID:	1180161

              and the device string will show like:
              Click image for larger version

Name:	virtualdevicestring.jpg
Views:	2
Size:	11.1 KB
ID:	1180162

              Comment


                #8
                Awesome, thank you!! Works like a charm. I was evaluating Easytrigger, and pulled the trigger (pun intended) and purchased it.

                Question for you -- I was able to update the plug-in from .13 to .15 manually per your instructions. However, I thought that this process was supposed to occur automatically within HS3? I.e., HS3 would automatically look for new updates and let me select to install them, without me having to add anything manually to the folders.

                Comment


                  #9
                  Originally posted by mikedr View Post
                  Question for you -- I was able to update the plug-in from .13 to .15 manually per your instructions. However, I thought that this process was supposed to occur automatically within HS3? I.e., HS3 would automatically look for new updates and let me select to install them, without me having to add anything manually to the folders.
                  To put new version of plugins in the updater I have to ask HST guys, so I usually only do it once per month.
                  For all my plugins the newest versions are always posted in the "Beta testing" thread of the plugin subforum, that allow me to have them tested by a small number of users before they go in the updater.

                  Comment


                    #10
                    Originally posted by spud View Post
                    To put new version of plugins in the updater I have to ask HST guys, so I usually only do it once per month.
                    For all my plugins the newest versions are always posted in the "Beta testing" thread of the plugin subforum, that allow me to have them tested by a small number of users before they go in the updater.
                    Ahhh, got it!

                    Comment


                      #11
                      The new HS3 release will include a feature that automatically creates a virtual device for each timer and counter when it starts up. FYI
                      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                      Comment


                        #12
                        Originally posted by macromark View Post
                        The new HS3 release will include a feature that automatically creates a virtual device for each timer and counter when it starts up. FYI
                        Excellent!
                        HS4Pro on a Raspberry Pi4
                        54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
                        Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

                        HSTouch Clients: 1 Android

                        Comment


                          #13
                          Originally posted by macromark View Post
                          The new HS3 release will include a feature that automatically creates a virtual device for each timer and counter when it starts up. FYI
                          Don't leave us hangin'! What's the ETA?

                          Comment


                            #14
                            Great! Thank you!
                            Tom
                            baby steps...starting again with HS3
                            HS3Pro: Z-NET & 80 Z wave Devices,
                            HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
                            Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
                            In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
                            System: XP on Fanless Mini-ITX w/ SSD

                            Comment


                              #15
                              Originally posted by mikedr View Post
                              Don't leave us hangin'! What's the ETA?
                              I'm testing it now. Just gave Rich some status icons for it. I'd say next week is reasonable unless we find any show stoppers.
                              Attached Files
                              💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                              Comment

                              Working...
                              X