Announcement

Collapse
No announcement yet.

HS4 Events with multiple and conditions not working

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

    #16
    To perform this in a single event without group conditions it would have to look like this:
    Code:
    [FONT=Courier New]IF Door 1 had value set to Closed
      AND IF Door 2 is Closed
      AND IF Door 3 is Closed
      AND IF Door 4 is Closed
      AND IF Door 5 is Closed
      AND IF Door 6 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 2 had value set to Closed
      AND IF Door 1 is Closed
      AND IF Door 3 is Closed
      AND IF Door 4 is Closed
      AND IF Door 5 is Closed
      AND IF Door 6 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 3 had value set to Closed
      AND IF Door 1 is Closed
      AND IF Door 2 is Closed
      AND IF Door 4 is Closed
      AND IF Door 5 is Closed
      AND IF Door 6 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 4 had value set to Closed
      AND IF Door 1 is Closed
      AND IF Door 2 is Closed
      AND IF Door 3 is Closed
      AND IF Door 5 is Closed
      AND IF Door 6 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 5 had value set to Closed
      AND IF Door 1 is Closed
      AND IF Door 2 is Closed
      AND IF Door 3 is Closed
      AND IF Door 4 is Closed
      AND IF Door 6 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 6 had va6ue set to Closed
      AND IF Door 1 is Closed
      AND IF Door 2 is Closed
      AND IF Door 3 is Closed
      AND IF Door 4 is Closed
      AND IF Door 5 is Closed
      AND IF Door 7 is Closed
    
    OR IF Door 7 had value set to Closed
      AND IF Door 1 is Closed
      AND IF Door 2 is Closed
      AND IF Door 3 is Closed
      AND IF Door 4 is Closed
      AND IF Door 5 is Closed
      AND IF Door 6 is Closed
    
    THEN
      Set
        Exterior door status to Closed
        Switch 1 to Off[/FONT]
    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
      Or if you have the EasyTrigger plugin you could put them all in a Device Group and just do an IF against that 👍

      Comment

      Working...
      X