Hello HA forum,
this is my very first post here and I hope you excuse maybe stupid newby failures. And please excuse that I might ask questions that have been answered many times before. Will try to stop doing so once I dived deeper into this.
Basic information about my system:
In the course of renovating my old house I try to add a few smart features.
HA on Pi 4b
Growatt (20KWp/30KWh battery)
Anker (Solix E1600Pro, 1 extra battery).
Fritz!Dect components
Moboix cams
Music Players (HifiBerry/Volumio multiroom, Denon HEOS, Linn)
coming soon:
thermostat for electrical floor heating.
Zigbee things.
RS485/ModBUS RTU Gateway (Moxa nPort) to replace Growatt cloud and access the SmartMeter.
Today I set up HA. Was impressively easy!
I started with GUI only, integrated the above mentioned components, created a dashboard and tried automations., added SSH access and well have no clue about the big picture of where to find which configuration files etc.
My first idea is to switch on a pump when the SOC of the Growatt battery is above a value (e.g. 20%) and the output of the generators (panels) ist above a value (e.g. 1500 Watts).
Didn’t work out using GUI assumingly because the SOC can be above the trigger value and the “preset” gave me this “yaml” code:
type: battery_level
device_id: 1cc9617b89dbfe6c4078185134a46042
entity_id: 9ce89635e286728db77c177e01313992
domain: sensor
trigger: device
above: 20
for:
hours: 0
minutes: 5
seconds: 0
AGAIN I found this part of code in the GUI but don’t know if I am in the right place!
I understand the problem but didn’t find the way to go… I need a trigger that does:
- check SOC
- if SOC is above value and
- if power is above value do
- switch device on
I think that this will need a different trigger type, probably a numeric state trigger. I checked the documentation (/automation/triggers) and got lost when it came to the value_templates.
Maybe someone would be so kind to give my the little code I need to replace mine?
domain…
triggers:
- trigger: numeric_state
entity_id:…
Very best regards and many thanks in advance!
German