Hello community, im new to the topic homeassistant and automation.
I have a Solar system which i have already included to my HA.
It displays the:
- Daily Production
- current production
- overall production
Config-snip:
‘’’
modbus:
- type: tcp
host: 192.168.2.205 # SMA TriPower
port: 502
name: “sma”
close_comm_on_error: true
delay: 5
timeout: 5
sensors:- name: PV_Gesamtertrag
unit_of_measurement: kWh
slave: 3
address: 30513
scale: 0.001
precision: 2
input_type: input
data_type: int64
count: 4
device_class: energy
state_class: total_increasing - name: “PV_Leistung”
unit_of_measurement: W
slave: 3
address: 30775
input_type: input
data_type: uint32
count: 2
device_class: power
state_class: measurement - name: PV_Tagesertrag
unit_of_measurement: W
slave: 3
address: 30517
count: 4
data_type: int64
device_class: power
state_class: measurement
‘’’
- name: PV_Gesamtertrag
Now iam trying to do an automation which switche my shelly plug whenever the current production is over 2000W on and switches the plug of when it is less than 1000W
Config Snip:
‘’’
id: ‘1657528319898’
alias: PV_Shelly-AUS
description: ‘’
trigger:
- platform: numeric_state
entity_id: sensor.pv_leistung
for:
hours: 0
minutes: 0
seconds: 20
below: ‘8.000’
condition: []
action: - type: turn_off
device_id: edb952ea048b409800c5b747e4dd14ca
entity_id: switch.waschmaschine
domain: switch
mode: single
‘’’
But it does not work! What am i missing? Can someone help?
Thx in advance