diff --git a/configuration/automations/ac.yaml b/configuration/automations/ac.yaml new file mode 100644 index 0000000..61672c5 --- /dev/null +++ b/configuration/automations/ac.yaml @@ -0,0 +1,23 @@ +- id: ac_computer_cave + alias: '[AC] Computer cave too hot' + description: '' + mode: single + trigger: + - platform: numeric_state + entity_id: sensor.ble_temperature_computer_cave_sensor + above: '26' + for: 1m + condition: + - condition: state + entity_id: device_tracker.przemyslaws_iphone + state: home + action: + - service: climate.turn_on + target: + entity_id: climate.ac + - service: climate.set_temperature + data: + temperature: 24 + hvac_mode: cool + target: + entity_id: climate.ac diff --git a/configuration/automations/work-finished.yaml b/configuration/automations/work-finished.yaml deleted file mode 100644 index b54cd7f..0000000 --- a/configuration/automations/work-finished.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- id: work_finished - alias: '[Work] Notify when finished work' - trigger: - - platform: time - at: '17:00' - condition: - - condition: time - weekday: - - mon - - tue - - wed - - thu - - fri - action: - - service: vacuum.start - entity_id: vacuum.robot_vacuum - - service: light.turn_on - data: - brightness: 200 - rgb_color: - - 0 - - 200 - - 83 - entity_id: light.computer_lights - - service: light.turn_on - data: - flash: long - brightness: 200 - rgb_color: - - 0 - - 200 - - 83 - entity_id: light.computer_lights - mode: single diff --git a/configuration/automations/work-daily.yaml b/configuration/automations/work.yaml similarity index 63% rename from configuration/automations/work-daily.yaml rename to configuration/automations/work.yaml index 36f10f7..3fb58b1 100644 --- a/configuration/automations/work-daily.yaml +++ b/configuration/automations/work.yaml @@ -58,5 +58,40 @@ - delay: 5 - service: light.turn_off entity_id: light.computer_lights - mode: single + +- id: work_finished + alias: '[Work] Notify when finished work' + trigger: + - platform: time + at: '17:00' + condition: + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri + action: + - service: vacuum.start + entity_id: vacuum.robot_vacuum + - service: light.turn_on + data: + brightness: 200 + rgb_color: + - 0 + - 200 + - 83 + entity_id: light.computer_lights + - service: light.turn_on + data: + flash: long + brightness: 200 + rgb_color: + - 0 + - 200 + - 83 + entity_id: light.computer_lights + mode: single + diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index b0ade4b..8aea892 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -28,6 +28,18 @@ zwave: mqtt: broker: 127.0.0.1 +ios: + actions: + - name: door_lock + text: Front Door + background_color: "#000000" + label: + text: "Door Lock" + color: "#000000" + icon: + icon: lock-open + color: "#ffffff" + octoprint: host: prusa.lan port: 5000