Originally posted by sirbooker
View Post
Announcement
Collapse
No announcement yet.
can a virtual device be toggled in HS4
Collapse
X
-
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
-
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
-
Originally posted by sirbooker View PostIveatch
could you expand your IF statement so I can see how this was accomplished?
Len
HomeSeer Version: HS3 Pro Edition 3.0.0.435
Linux version: Linux homeseer Ubuntu 16.04 x86_64
Number of Devices: 633
Number of Events: 773
Enabled Plug-Ins
2.0.54.0: BLBackup
2.0.40.0: BLLAN
3.0.0.48: EasyTrigger
30.0.0.36: RFXCOM
3.0.6.2: SDJ-Health
3.0.0.87: weatherXML
3.0.1.190: Z-Wave
Comment
-
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
- Likes 1
Comment
Comment