Hello,
I would like to share my baby bottle warmer automation, might not be that complicated, but it sure is handy! (high WAF)
I used:
- Philips bottle warmer, but any other would do
- Power socket connected to HA. I used Sonoff S20 flashed with own code, but using tasmota or similar would do.
- Hassio 0.73.2 (but used nothing fancy, so should work with any HA) note: HA 0.55 or lower used input_slider instead of input_number.
Automation:
- I prepare 200ml baby milk in the baby bottle warmer after cleaning kitchen after dinner.
- I am upstairs sleeping or chilling in bed and enable the bottle warmer from my bed at midnight (when we want to feed the baby).
- I can change the time with sliders minutes and seconds, depending on amount of milk and requirement (our baby does not like it that hot).
- I receive a notification that it happend (start and end) and the kitchen light spots will turn on, so that I can grab the bottle. After-which it will turn off after 3 min.
Dutch to ENG:
fleswarmer = Bottlewarmer
waterkoker = kettle
minuten = minutes
seconden = seconds
For the configuration.yaml:
Switch:
- platform: mqtt
name: "fleswarmer"
state_topic: "home/midden/keuken/waterkoker"
command_topic: "home/midden/keuken/waterkoker/set"
payload_off: "0"
payload_on: "1"
qos: 1
- platform: mqtt
name: "keuken spots"
state_topic: "home/midden/keuken/spots"
command_topic: "home/midden/keuken/spots/set"
payload_off: "0"
payload_on: "1"
qos: 1
# sliders
input_number:
flesopwarmenmin:
name: Fles opwarm minuten
icon: mdi:clock-start
initial: 3
min: 0
max: 6
step: 1
flesopwarmensec:
name: Fles opwarm seconden
icon: mdi:clock-start
initial: 30
min: 0
max: 60
step: 10
Automation:
##################### fles warmer aan voor periode van slider tijd
- alias: flessenwarmer uit
trigger:
platform: state
entity_id: switch.fleswarmer
to: 'on'
action:
- service: notify.pushbullet
data:
message: "Fles verwarming aan"
- delay: '00:{{ states.input_number.flesopwarmenmin.state | int }}:{{ states.input_number.flesopwarmensec.state | int }}'
- service: switch.turn_off
entity_id: switch.fleswarmer
- service: notify.pushbullet
data:
message: "Baby fles klaar"
- service: switch.turn_on
entity_id: switch.keuken_spots
- delay: '00:03:00'
- service: switch.turn_off
entity_id: switch.keuken_spots
I put it all together in groups.yaml:
default_view:
view: yes
icon: mdi:lightbulb-on-outline
entities:
- group.keuken
- group.woonkamer
- group.baby
baby:
name: Baby flessenwarmer
entities:
- switch.fleswarmer
- input_number.flesopwarmenmin
- input_number.flesopwarmensec