this is my first stap at creating a automatic within Home Assistant, and I think I need a bit of help
the ideal is that at the moment my database within HA is filling up with Zeros when the sun go’s down and I am no longer making any solar energy, so I would like to disable my SolarEdge sensor every time my Unifi G4 cam go’s into Night Vision Mode.
I have also added a notification to the script for the time being so I am monitor it for a bit, but this will be removed.
my code so far is :
id: '1648883962423'
alias: Solar gen monitor stop
description: ''
trigger:
- type: turned_on
platform: device
device_id: d40c3abd3c2f785106580d010e8da86e
entity_id: binary_sensor.front_gate_is_dark
domain: binary_sensor
condition: []
action:
- condition: state
state: 'False'
entity_id: sensor.solaredge_current_power
- service: notify.mobile_app_chris_s21_phone
data:
message: No More Solar Energy
title: Notification
- service: notify.alexa_media_chris
data:
message: |-
<audio src="soundbank://soundlibrary/home/amzn_sfx_doorbell_01"/> {{ (
"No More Solar Energy today",
)}}
data:
type: tts
mode: single
so my question is, am I on the right track ?