I have integrated a solar system that is providing me with the following values via a sensor:
1000 → House consumes 1000 watts
-500 → Solar system transfers 500 watts to the grid
The dishwasher is connected via Home Connect.
My plan:
When the solar system transmits power to the grid and is exceeding a value for a couple of minutes, the dishwasher should start automatically to use the excess energy (only if the remote start is activated).
Unfortunately it’s not working. Is the “below” setting of the grid sensor part working with a negative value? Or is there a better / clever way to realise such a task?
alias: PV Überschuss Dishwasher
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.evcc_gridpower_watt
attribute: state_class
below: '-500'
for:
hours: 0
minutes: 1
seconds: 0
condition:
- type: is_on
condition: device
entity_id: binary_sensor.mr_dishwasher_remote_start
domain: binary_sensor
action:
- type: turn_on
entity_id: switch.mr_dishwasher_program_auto2
domain: switch
mode: single
I think your trouble is the attribute option in the trigger. That’s basically telling the trigger to fire if the state_class
attribute changes to a numeric value less than -500. (I’m guessing that attribute is not a numeric value. ) If you remove that then the trigger will fire if the sensor’s state changes to a numeric value less than -500.
thank you for the feedback. Made me think and rethink again. That’s how it works for me:
alias: PV Überschuss Dishwasher
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.ueberschuss_solar
above: '1000'
condition:
- condition: state
entity_id: binary_sensor.mr_dishwasher_remote_start
state: 'on'
- condition: state
entity_id: sensor.mr_dishwasher_operation_state
state: Ready
action:
- type: turn_on
entity_id: switch.mr_dishwasher_program_auto2
domain: switch
- service: telegram_bot.send_message
data:
message: >-
Die PV Überschuss beträgt gerade
{{states.sensor.ueberschuss_solar.state}} W. Die Spülmaschine ist
gestartet.
mode: single
Did you get this working? I am in the exact same situation, but cannot get mine (Neff dishwasher via home connect) work. It seems like many sensors do not output numerical values (even though they sort of do)… I bought a raspberry pi to run simple energy-saving automations like this one, but it is turning out to be a frustrating exercise