So I am trying to get my Telldus Z-wave switch with energy metering to notify me when my Coffe Brewer has made my coffee.
So what I do know is, when it is brewing the power it is using is around 1500watts, when it is done it jumps down to around 50watts for just keeping the coffee warm.
I have already managed to get it to turn off the power automaticly after 30 minutes, so I don’t forget it on.
The code for this is:
- alias: 'Turn off Coffee brewer after 30 minutes on'
trigger:
- platform: numeric_state
entity_id: sensor.telldus_tzwp_102_plug_in_switch_power
above: 20
for: '00:30:00'
action:
- service: switch.turn_off
entity_id: switch.telldus_tzwp_102_plug_in_switch_switch
Now for the rest part I’ve been thinking using but I am pretty sure I’m totally lost, and couldn’t find anything close in code to what I try to do.
- alias: 'Coffee is done!'
trigger:
- platform: numeric_state
entity_id: sensor.telldus_tzwp_102_plug_in_switch_power
above: 20
condition:
condition: template
value_template: '{{ trigger.from_state.sensor.telldus_tzwp_102_plug_in_switch_power < 1000}}'
action:
- service: notify.notify
data:
message: Coffee done!
tom_l
May 11, 2019, 5:47pm
2
If the power drops to 50W when done all you should need is this:
- alias: 'Coffee is done!'
trigger:
- platform: numeric_state
entity_id: sensor.telldus_tzwp_102_plug_in_switch_power
below: 60
action:
- service: notify.notify
data:
message: Coffee done!
1 Like
It seems to be working, thank you
123
(Taras)
May 11, 2019, 8:47pm
4
trigger:
- platform: numeric_state
entity_id: sensor.telldus_tzwp_102_plug_in_switch_power
below: 60
Wouldn’t that get triggered when the coffee brewer is turned off?
tom_l
May 12, 2019, 12:35am
5
Only if it was turned off while brewing. If that is a likely event, then the trigger could be changed to:
trigger:
- platform: numeric_state
entity_id: sensor.telldus_tzwp_102_plug_in_switch_power
below: 60
above: 10
Timx
(Timo)
May 12, 2019, 8:06am
6
I uses the same logic for my wasmachine.
- alias: 'Wasmachine Started'
initial_state: 'on'
condition:
condition: state
entity_id: input_boolean.statuswasmachine
state: 'off'
trigger:
- platform: numeric_state
entity_id: sensor.everspring_an158_plugin_meter_appliance_module_power #ENERGY METER
above: '0.0'
for:
minutes: 1
- alias: 'Wasmachine Finished'
initial_state: 'on'
condition:
condition: state
entity_id: input_boolean.statuswasmachine
state: 'on'
trigger:
- platform: numeric_state
entity_id: sensor.everspring_an158_plugin_meter_appliance_module_power #ENERGY METER
below: '0.1'
for:
minutes: 1
I also found that if the coffee brewer manages to turn off automaticly after(initially) 30 minutes, now 60 minutes, and I turn it on again I get a new notification telling me the Coffee is done.`
I think I get the rest of the script, but what does this do?
Anything after the # is ignored on that line. # = comment.