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"
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”.
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…