Z-wave switch default OFF if connection lost

Hello,
I am building a iggrigation system from my greenhouse and my thought was to stear the watervent with a z-wave switch. This switch that I have today (a Popp Smart outdoor) sometimes looses connection as the distance between the controller and greenhould is on the limit for Z-wave.

Q: Can I configure the system to work with automation (on/off) for the watering and then if connection fails send a notification from HA and switch off the plug so my plants dont drown?

Alternatively I get a timer that I can program locally but it would be nice to have it with HA.
Thanks in advance

Don’t understand exactly how your system is configured or what the electrical switch does. Have you considered some of the irrigation solutions such as RainMachine or Rachio. I use garbage collection from hacs to set watering days as required by municipality. I have one script to irrigate the lawn and flower beds. I have multiple cycles and times for each zone set up in Lovelace and shutting off the main irrigation valve to prevent any leaks.

- id: '1627491913964'
  alias: Water Lawn with repeat
  description: Water all zones with repeat
  trigger:
  - platform: time
    at:
    - input_datetime.cycle1
    - input_datetime.cycle2
    - input_datetime.cycle3
    - input_datetime.cycle4
    - input_datetime.cycle5
    - input_datetime.cycle6
  condition:
  - condition: state
    entity_id: sensor.watering_days
    state: '0'
  - condition: state
    entity_id: input_boolean.run_irrigation
    state: 'on'
  action:
  - repeat:
      count: '11'
      sequence:
      - variables:
          zone: switch.zone_{{ repeat.index }}
      - service: switch.turn_on
        target:
          entity_id: '{{ zone }}'
      - delay:
          minutes: '{{ states(''input_number.zone'' ~ repeat.index) | int }}'
      - service: switch.turn_off
        target:
          entity_id: '{{ zone }}'
  mode: single

This turns on my main irrigation valve

- id: 'Turn on Valve to Irrigation'
  alias: 'Water Lawn - Turn on/off main water '
  description: Open the shutoff valve to the irrigation system
  trigger:
  - platform: time
    at: input_datetime.irrigation_valve_on_morning
  - platform: time
    at: input_datetime.irrigation_valve_on_evening
  - platform: time
    at: input_datetime.irrigation_valve_off_morning
  - platform: time
    at: input_datetime.irrigation_valve_off_evening
  condition:
  - condition: state
    entity_id: sensor.watering_days
    state: '0'
  - condition: state
    entity_id: input_boolean.run_irrigation
    state: 'on'
  action:
  - choose:
    - conditions:
      - condition: time
        after: input_datetime.irrigation_valve_on_morning
        before: input_datetime.irrigation_valve_off_morning
      sequence:
      - service: switch.turn_on
        target:
          entity_id: switch.irrigation_current_value
    - conditions:
      - condition: time
        after: input_datetime.irrigation_valve_on_evening
        before: input_datetime.irrigation_valve_off_evening
      sequence:
      - service: switch.turn_on
        target:
          entity_id: switch.irrigation_current_value
    - conditions:
      - condition: time
        after: input_datetime.irrigation_valve_off_morning
        before: input_datetime.irrigation_valve_on_evening
      sequence:
      - service: switch.turn_off
        target:
          entity_id: switch.irrigation_current_value
    - conditions:
      - condition: time
        after: input_datetime.irrigation_valve_off_evening
      sequence:
      - service: switch.turn_off
        target:
          entity_id: switch.irrigation_current_value
    default:
    - delay:
        hours: 0
        minutes: 0
        seconds: 0
        milliseconds: 10
  mode: single

I don’t see how an “off” message could be sent to the plug if communication fails?

1 Like

No. You’d have to have logic on the device itself to know it lost connection and respond.

While you can determine if the zwave device is reachable in HA, see this post

If you can’t reach the device you can’t turn it off.

I use linktap and it works well. When you command it on you give it a duration, once that duration expires regardless of connection status it turns off.

Hello,
This linktap seems to be what I need but this is not a Z-wave device if I understand correctly, or am I wrong?

Correct it is not a zwave device. It comes with a base station that needs both power and an Ethernet connection. The valve itself runs off of batteries and can be placed some distance from the base station. The base station has MQTT builtin, so it can plug directly into HA. And/or the base station can talk to the Linktap cloud which them allows you to monitor, schedule and control it from your phone. There is also a cloud API that has been integrated in HA. The valve has an optional flow meter which is nice to have. So for example, if the valve turns on and there is no flow, it’ll alert you to that. And you can set a high limit, so on mine I know it usually uses 4 gallons per hour (drip system), so if it exceeds 5 gph the valve turns itself off automatically and the cloud sends me an alert.