1
0

Compare commits

..

6 Commits

Author SHA1 Message Date
3b7d381dbc Update notifications
add new leak sensors
 add notifcations for smoke sensors
2022-11-17 01:01:24 +01:00
d1a89ec227 Small change in 3d printer notify automation 2022-11-17 00:53:50 +01:00
b8d2816494 Fix calendar coffee machine automation 2022-11-17 00:52:27 +01:00
ca68b56f72 Add notification for paused print 2022-11-17 00:30:00 +01:00
6a5f2e6904 Workaround for alarm clock cover 2022-11-16 01:43:10 +01:00
86a9d4b0c3 Fix coffee machine automation 2022-11-16 01:27:05 +01:00
4 changed files with 113 additions and 57 deletions

View File

@ -129,3 +129,20 @@
- service: switch.turn_off
target:
entity_id: switch.3d_printer_enclosure_fan_on_off
- id: 3dprinter-pause-notify
alias: '[3D Printer] Notify about paused print'
mode: single
trigger:
- platform: state
entity_id: sensor.octoprint_target_tool0_temp
to: "0"
condition:
- condition: numeric_state
entity_id: sensor.octoprint_target_bed_temp
above: 0
action:
- service: notify.mobile_app_iphone
data:
message: Print has been paused
title: Prusa i3

View File

@ -7,32 +7,32 @@
entity_id: calendar.automations_wakeup
action:
# Set speed for blinds
- service: zha.issue_zigbee_cluster_command
data:
ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
command: 0x0006
command_type: server
endpoint_id: 1
cluster_id: 258
args:
- 0
- 0
- 0x69
- 0
- [ 4, 0, 0, 0, 10 ]
- service: zha.issue_zigbee_cluster_command
data:
ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
command: 0x0006
command_type: server
endpoint_id: 1
cluster_id: 258
args:
- 0
- 0
- 0x69
- 0
- [ 4, 0, 0, 0, 10 ]
# - service: zha.issue_zigbee_cluster_command
# data:
# ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
# command: 0x0006
# command_type: server
# endpoint_id: 1
# cluster_id: 258
# args:
# - 0
# - 0
# - 0x69
# - 0
# - [ 4, 0, 0, 0, 10 ]
# - service: zha.issue_zigbee_cluster_command
# data:
# ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
# command: 0x0006
# command_type: server
# endpoint_id: 1
# cluster_id: 258
# args:
# - 0
# - 0
# - 0x69
# - 0
# - [ 4, 0, 0, 0, 10 ]
- service: automation.turn_off
target:
entity_id:
@ -100,30 +100,30 @@
- light.bed_lamps
- light.bed_lightstrip
# Set back speed for blinds
- service: zha.issue_zigbee_cluster_command
data:
ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
command: 0x0006
command_type: server
endpoint_id: 1
cluster_id: 258
args:
- 0
- 0
- 0x69
- 0
- [ 4, 0, 0, 0, 100 ]
- service: zha.issue_zigbee_cluster_command
data:
ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
command: 0x0006
command_type: server
endpoint_id: 1
cluster_id: 258
args:
- 0
- 0
- 0x69
- 0
- [ 4, 0, 0, 0, 100 ]
# - service: zha.issue_zigbee_cluster_command
# data:
# ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
# command: 0x0006
# command_type: server
# endpoint_id: 1
# cluster_id: 258
# args:
# - 0
# - 0
# - 0x69
# - 0
# - [ 4, 0, 0, 0, 100 ]
# - service: zha.issue_zigbee_cluster_command
# data:
# ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
# command: 0x0006
# command_type: server
# endpoint_id: 1
# cluster_id: 258
# args:
# - 0
# - 0
# - 0x69
# - 0
# - [ 4, 0, 0, 0, 100 ]
mode: single

View File

@ -7,10 +7,16 @@
entity_id: calendar.automations_wakeup
offset: '-16:00:0'
action:
- wait_for_trigger:
- platform: numeric_state
entity_id: sensor.coffee_machine_electrical_measurement
below: '4'
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.coffee_machine_electrical_measurement
above: 4
sequence:
- wait_for_trigger:
- platform: numeric_state
entity_id: sensor.coffee_machine_electrical_measurement
below: '4'
- service: switch.turn_off
target:
entity_id: switch.coffee_machine_on_off

View File

@ -5,6 +5,12 @@
- platform: state
entity_id: binary_sensor.coffee_machine_leak_sensor
to: 'on'
- platform: state
entity_id: binary_sensor.fridge_leak_sensor
to: 'on'
- platform: state
entity_id: binary_sensor.humidifier_leak_sensor
to: 'on'
- platform: state
entity_id: binary_sensor.kitchen_sink_leak_sensor
to: 'on'
@ -18,4 +24,31 @@
message: >
Leak detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
data:
importance: high
push:
sound:
name: "default"
critical: 1
volume: 1.0
- id: info-smoke-notice
alias: '[INFO] Smoke notice'
mode: single
trigger:
- platform: state
entity_id: binary_sensor.3d_printer_smoke_sensor_smoke_alarm_smoke_detected
to: 'on'
- platform: state
entity_id: binary_sensor.rack_smoke_sensor
to: 'on'
action:
- service: notify.mobile_app_iphone
data:
title: "Smoke detection"
message: >
Smoke detected: {{ state_attr(trigger.entity_id, 'friendly_name') }}
data:
push:
sound:
name: "default"
critical: 1
volume: 1.0