Announcement

Collapse
No announcement yet.

can a virtual device be toggled in HS4

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

    #16
    Originally posted by sirbooker View Post
    so in HS4 now when you create a virtual device you get 2 devices
    one is the status and the other the control (on/off) and toggle
    this does NOT work! but if you delete the control and give the status the controls (on/off/toggle) it works...yip pee.

    easytrigger would need to update to HS4 so you could select
    morning alarm clock and then sub-feature Control
    to make this work.
    So you are using EasyTrigger then?
    HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
    Plugins: Z-Wave (via Nortek USB stick

    Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
    Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
    Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
    Insteon: 2413S Dual Band PLM
    Zigbee: zzh! CC2652R Rev A
    Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

    Comment


      #17
      Originally posted by dbrunt View Post

      You'd have to ask HomeSeer...
      Hello. Thanks again for the information which I will take great care of. I'll start analyzing EasyTrigger specifically. Thanks

      Comment


        #18
        using easytrigger and 2 simple events this is working very well
        Click image for larger version

Name:	toggle virtual device.jpg
Views:	111
Size:	26.7 KB
ID:	1446409

        Comment


          #19
          I have a virtual device for a garage door warning. With two events I toggle a device between open and close. I use a bunch of ZRC-90 remotes throughout the house and also some zigbee single buttons.

          Event #1 If button 1 gets pressed and the garage door is closed then open the garage door. Start the timer. Set the virtual device to open for a warning every 5 minutes
          Event #2 If button 1 gets pressed and the garage door is open then close the garage door. Stop and reset the timer. Set the virtual device to closed.

          Very simple, easy to manage and should be flexible enough to use for various triggers.

          Comment


            #20
            Originally posted by sirbooker View Post
            Iveatch
            could you expand your IF statement so I can see how this was accomplished?
            Sure
            Click image for larger version

Name:	Capture.PNG
Views:	89
Size:	20.1 KB
ID:	1446441

            Comment


              #21
              Thanks
              this is a much better way

              Originally posted by lveatch View Post

              Sure
              Click image for larger version

Name:	Capture.PNG
Views:	89
Size:	20.1 KB
ID:	1446441

              Comment


                #22
                You can also use a very simple toggle script (attached), in an event.

                Copy the attached script (toggle.vb.txt) toggle.vb.txt in your script directory.
                Rename it toggle.vb
                Check the ref number of the device you want to toggle (1642 in this example)

                Set an event:
                IF manually triggered
                Then
                Run the script: toggle.vb
                calling method Main with parameter(s) 1642

                et voilĂ  ...
                Visit zee e-maison : http://www.e-maison.com

                Comment

                Working...
                X