1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
3ed4f02da9 Add Prusa mini button 2024-05-19 16:50:07 +02:00
7096529d1e Setup prusa mini lights 2024-05-19 15:47:35 +02:00
3 changed files with 68 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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'