Announcement

Collapse
No announcement yet.

Cannot do SetDeviceValueByName("dev_name", 123, FALSE) so events aren't triggered...

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

    Cannot do SetDeviceValueByName("dev_name", 123, FALSE) so events aren't triggered...

    SetDeviceValueByRef() has a third boolean parameter true|false to prevent triggering events when issued.
    Why doesn't SetDeviceValueByName()?
    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

    #2
    You can do
    Code:
    Dim dvRef As Integer = hs.GetDeviceRefByName(dvName)
    then
    Code:
    hs.SetDeviceValueByRef(dvRef, dvVal, False)
    hs.SetDeviceString(dvRef, dvStr, False)

    Comment


      #3
      Thanks zwolfpack for pointing me in the right direction. I tried
      Code:
      &hs.SetDeviceValueByRef((hs.GetDeviceRefByName("Z-Wave Bedroom Tilt")), 16, False)
      as immediate command and it works but I have to refresh my browser window to see the update. Is that to be expected with "false"? Would be nice to trigger an update on the status page but not trigger an event...
      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

      Working...
      X