I think I did the wrong search, so maybe someone can point me in the right direction
I want to switch a Nous A1T (running Tasmota, integrated into HA) if the SOC of my Solis inverter battery (also integrated into HA unsing the HACS plugin + Solis API).
Sadly: I can’t figure out if this even possible.
The task is simple: If the SOC of my solar battery, reported by the Solis API gets lower than 50%: → switch off the A1T plug. If it get higher than 60%, switch on the A1T.
trigger:
- id: "off"
platform: numeric_state
entity_id: sensor.your_soc_sensor_here # change this
below: 50
for: # you may not need this, but it could help with noisy signals
minutes: 1
- id: "on"
platform: numeric_state
entity_id: sensor.your_soc_sensor_here # change this
above: 60
for: # you may not need this, but it could help with noisy signals
minutes: 1
action:
- service: "switch.turn_{{ trigger.id }}"
target:
entity_id: switch.a1t_plug # change this to your actual switch entity id.
Hello,
yes this looks like the thing I want to do. In the meanwhile, I found also this: Conditions - Home Assistant (which is actually like your template)
I was wondering, how/where this code has to be implemented, but then I found this:
Thanks for the help: I’m going to play a bit with that to get comfortable