Dome Water Main Shut Off Automation

I am trying to automate a Dome Water Main Shut Off control using a tasmotized sonoff basic as the water sensor trigger. I have both the Dome control and the sonoff basic working independent of each other however I cannot get the sonoff basic to trigger the Dome control. Obviously I have something wrong with my configuration. Here is my config:

  - platform: mqtt
    name: "Furnace Water"
    command_topic: "cmnd/sonoff6/POWER"
    state_topic: "stat/sonoff6/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"    
    
automation:
- alias: Furnace Water
  trigger:
    - platform: state
      entity_id: switch.furnace_water
      to: 'on'
  action:
    - service: homeassistant.turn_off
      entity_id: switch.dome_water_shut_off_valve_switch
- service: notify.pushover
  data:
    title: "Water Main Off!"
    message:  "turned off water main"     

Please help, thank you!

I don’t know if it was a copy/paste error but the last service call needs to be indented 4 spaces.

assuming that is the case then can you trigger the automation manually? Go to the dev tools states page and find the automation. click the box to the left and in the pop-up click “trigger”.

Does that work?

Thank you! I’ll try it.

Yes, it works on both devices, the Dome Water Shut-Off Valve Switch and the Sonoff switch. However the Sonoff switch does not trigger the Dome switch.

Thank you,

still trying to get this valve shut-off to work with a son off switch…

can anyone help?
thanks

Think you have to use the service switch.turn_off to trigger it correctly.

when this automation runs, does your pushover notification work? I’m trying to understand if it’s actually getting to the action or not… The homeassistant.turn_off works just fine for me in my dome automation…

When I trigger the sonoff switch either physically at the switch or over the Home Assistant app the status changes from off to on. But it doesn’t activate the Dome valve. The Dome valve can also be activated on and off physically by pushing the switch on it or over Home Assistant. They are not communicating with each other. I thought that there must be an issue with my code. I am not sure what you mean by “pushover notification”. Thanks for your help…

You’ll need to debug your sonoff’s mqtt topics to see what’s going on.

How you could integrate your Dome water valve with HA ?

I have Z-Stick Gen 5 but still can’t pair it.

The above configuration started working just recently when I upgraded to hassio 0.98.5