I want to put in values of my “smart” Miele wasching machine, which only can cloud, manually.
I created to helper. input_number
I created an automation. When i put in values in the helper, it should be added to a sensor and the helper should be set back to zero.
But my automation don’t trigger.
Someone can tell my why?
alias: Waschmaschine joker
description: ""
trigger:
- platform: state
entity_id:
- input_number.waschgang_joker_energy
for:
hours: 0
minutes: 5
seconds: 0
from: "0"
- platform: state
entity_id:
- input_number.waschgang_joker_water
for:
hours: 0
minutes: 5
seconds: 0
from: "0"
condition: []
action:
- if:
- condition: and
conditions:
- condition: numeric_state
entity_id: input_number.waschgang_joker_energy
above: 0
- condition: numeric_state
entity_id: input_number.waschgang_joker_water
above: 0
then:
- service: python_script.set_state
data:
entity_id: sensor.waschmaschine_joker_energy
state: >-
{{((states.sensor.waschmaschine_joker_energy.state | float +
states.input_number.waschgang_joker_energy.state | float))}}
- service: python_script.set_state
data:
entity_id: sensor.waschmaschine_joker_water
state: >-
{{(((states.sensor.waschmaschine_joker_water.state) | float +
(states.input_number.waschgang_joker_water.state | float)/1000))}}
- service: input_number.set_value
data:
value: 0
target:
entity_id:
- input_number.waschgang_joker_energy
- input_number.waschgang_joker_water
mode: single