Compare commits
2 Commits
713cc83484
...
3ed4f02da9
Author | SHA1 | Date | |
---|---|---|---|
3ed4f02da9 | |||
7096529d1e |
@ -67,6 +67,7 @@ battery:
|
||||
- sensor.office_window_vibration_sensor_battery
|
||||
- sensor.ozempic_sensor_battery
|
||||
- sensor.printer_button_battery
|
||||
- sensor.prusa_mini_button_battery
|
||||
- sensor.quest_battery_level
|
||||
- sensor.rack_sensor_battery
|
||||
- sensor.rack_smoke_sensor_battery
|
||||
|
@ -1,3 +1,66 @@
|
||||
- id: prusa_mini_button
|
||||
alias: '[Prusa MINI] button'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
||||
domain: zha
|
||||
platform: device
|
||||
type: remote_button_short_press
|
||||
subtype: remote_button_short_press
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.prusa_mini_switch
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.prusa_mini_switch
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: switch.prusa_mini_switch
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: sensor.prusa_mini
|
||||
state: idle
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.prusa_mini_outlet_power
|
||||
below: '10'
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.prusa_mini_switch
|
||||
|
||||
- id: prusa_mini_door_open
|
||||
alias: '[Prusa Mini] Door open'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.prusa_mini_door_window_door_is_open
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.prusa_mini_light_light
|
||||
|
||||
- id: prusa_mini_door_close
|
||||
alias: '[Prusa Mini] Door close'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.prusa_mini_door_window_door_is_open
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.prusa_mini_light_light
|
||||
|
||||
- id: prusa_mini_notify
|
||||
alias: '[Prusa Mini] Notify finished'
|
||||
mode: single
|
||||
|
@ -181,3 +181,7 @@ devices:
|
||||
id: '2963910c6c3798aab228abe14ed46ba8'
|
||||
- name: 'Bathroom music button'
|
||||
id: 'ea9059ad2df037a012ab01a575108dc5'
|
||||
- name: 'Prusa MINI outlet'
|
||||
id: '1a9044fa5e6d0ed3870b8b99c5ee9bd1'
|
||||
- name: 'Prusa MINI button'
|
||||
id: 'e233cdffb05076ad7bb049581ffa8c9c'
|
||||
|
Loading…
Reference in New Issue
Block a user