Originally posted by zwolfpack
View Post
Announcement
Collapse
No announcement yet.
Problem with immediate script &hs.setdevicevaluebyref(217,0,False)
Collapse
X
-
Guest
-
Yay! Thanks!!!!!
This morning I thought of another way to manage them.
Create & assign an HS4 Category, then filter before using Bulk Edit...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
-
Originally posted by jon00 View PostYou need 500 posts before you get access to your signature settings.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
-
We now return you to our regularly scheduled programming...
Running script /tmp/K1.vb :Object reference not set to an instance of an object->Does entry point &hs.setdevicevaluebyref(217,0,False) exist in script? at Scheduler.clsRunVBNetScript.ExecuteScript () [0x0039b] in :0
2020-06-06 6:07:50 PM
HomeSeer
Event
Running script statement immediately: &nhs.setdevicevaluebyref(217, 0, False)("&hs.setdevicevaluebyref(217,0,False)")
2020-06-06 6:07:50 PM
HomeSeer
Event
Event Trigger "Status Updates Bedroom Blind Multilevel Sub"
Date/time=2020-06-06 6:10:37 PM PDT
Version=HS4 Pro Edition 4.0.7.0 (Linux)
License=Registered
Uptime=0 Days 0 Hours 9 Minutes 44 Seconds
Lan IP=192.168.1.103 (Debian10)
Device Count=148
Event Count=53
Plugins Enabled=Pushover 3P:,SDJ-Health:,Z-Wave:,Insteon:,drhsEventEnabler:,Zigbee:
Modules/Threads=83 Modules, 65 Threads
Available Threads=399
HomeSeer Memory Used=175 Mbytes
Plugins Installed=Current Cost 3P 0.0.0.42,drhsEventEnabler 1.0.0.0,Insteon 3.0.7.8,JowiHue 4.0.0.20,mcsMQTT 5.2.4.9,NetCAM 3.0.0.14,Pushover 3P 0.0.0.48,SDJ-Health 3.0.8.5,Zigbee 4.0.6.0,Z-Wave 3.0.2.0HS4 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
-
On my test HS3-Pi, I create a couple of similar events with immediate commands
&hs.setdevicevaluebyref(456, 0, False)
and
&hs.setdevicevaluebyref(456, 100, False)
The generated files /tmp/K2.vb look like this
Function Main(parm as object)
dim result as object
result=hs.setdevicevaluebyref(456, 100, False)
return(result)
End Function
If you create a brand new event, is there any difference?
Comment
-
Success!
2020-06-06 9:04:21 PM
HomeSeer
Event
Event Test New Event triggered by the event page 'Run' button.
2020-06-06 9:04:21 PM
HomeSeer
Event
Event Trigger "Test New Event"
2020-06-06 9:04:21 PM
HomeSeer
Event
Running script statement immediately: &hs.SetDeviceValueByRef(217,0,False)
...no error and device was changed. I also tried &nhs and it worked also.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
- Likes 1
Comment
Comment