Skip to content

Commit

Permalink
Migrate integration for new home
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Oct 17, 2024
1 parent 16ccd8a commit 6ddde5c
Show file tree
Hide file tree
Showing 22 changed files with 51 additions and 494 deletions.
9 changes: 9 additions & 0 deletions configuration.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Loading frontend themes
frontend:
themes: !include_dir_merge_named ../themes

# Load Home Assistant integrations as packages
homeassistant:
# Load customizations
# Only for those device that are not customisable from UI
customize: !include customize.yaml
# Load packages
packages: !include_dir_named integrations

# Root-level staff
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
11 changes: 0 additions & 11 deletions integrations/alarm_control_panel.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions integrations/automation.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions integrations/binary_sensor.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions integrations/camera.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions integrations/climate.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions integrations/frontend.yaml

This file was deleted.

67 changes: 0 additions & 67 deletions integrations/google_assistant.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions integrations/groups.yaml

This file was deleted.

Empty file modified integrations/http.yaml
100755 → 100644
Empty file.
32 changes: 0 additions & 32 deletions integrations/logger.yaml

This file was deleted.

1 change: 1 addition & 0 deletions integrations/media_player.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
media_player:
- platform: universal
name: PlayStation 5
unique_id: playstation_5
attributes:
state: sensor.playstation_5_activity
power: sensor.playstation_5_activity|power
Expand Down
32 changes: 28 additions & 4 deletions integrations/multiscrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ multiscrape:
value_template: >-
{% set message = value.split("|||") | last | lower %}
{% set in_kyiv = "київ" in message or "святошин" in message %}
{% set danger_now = "київ — уважно" in message
{% set danger_now = "київ — увага" in message
or "київ — укриття" in message
or "київ, укриття" in message
or "київ — уважно" in message
or "київ, уважно" in message
or "київ укриття не лишає" in message
or "київ — будьте в укриттях" in message
or "швидкісна ціль" in message
or "подалі від зовнішніх стін" in message
or "безпечних місцях" in message
or "спуск балістики" in message
or "кинджал у напрямку" in message
or "пуск кинджалу" in message
or "кинджал на" in message
%}
{{ danger_now and in_kyiv }}
Expand Down Expand Up @@ -60,18 +63,21 @@ multiscrape:
select_list: '.js-message_text'
value_template: >
{% set message = value.split("|||") | last | lower %}
{% set danger_indicator = "🔴" in message %}
{% set in_kyiv = "київ" in message or "святошин" in message %}
{% set nearby = "київ" in message
or "святошин" in message
or "шевченківський" in message
or "академмістечко" in message%}
{% set danger_now = "київ!" in message
or "буде гучно" in message
or "бути гучно" in message
or "в укриття" in message
or "перебувайте в укритті" in message
or "кинджал на" in message
or "балістика на" in message
or "київ ракета" in message
or "на київ заходять ракети" in message
%}
{{ danger_indicator and danger_now and in_kyiv }}
{{ danger_now and nearby }}
attributes:
- name: latest_message
select_list: '.js-message_text'
Expand All @@ -89,3 +95,21 @@ multiscrape:
- name: latest_message
select_list: '.js-message_text'
value_template: "{{ value.split('|||') | last }}"

- name: Ukrenergo
resource: https://t.me/s/Ukrenergo?q=увага%2Bвідключення
scan_interval: 600
list_separator: '|||'
sensor:
- unique_id: ukrenergo_telegram
name: Ukrenergo Telegram
icon: mdi:rocket-launch
device_class: date
select_list: '.js-message_info time'
attribute: datetime
value_template: >
{{ value.split("|||") | last | as_datetime }}
attributes:
- name: latest_message
select_list: '.js-message_text'
value_template: "{{ value.split('|||') | last }}"
27 changes: 11 additions & 16 deletions integrations/notify.yaml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
#
# Logger
#
# https://www.home-assistant.io/integrations/notify/
#

notify:
- platform: html5
name: web
vapid_pub_key: !secret html5_notify_pub_key
vapid_prv_key: !secret html5_notify_prv_key
vapid_email: !secret html5_notify_email
# Groups
- name: denys
platform: group
services:
- service: mobile_app_denyss_iphone
- service: mobile_app_denyss_ipad
- service: mobile_app_wix_macbook_pro
- name: marry
# - service: mobile_app_denyss_ipad
- service: mobile_app_ua_jg9hyqw3q0
- name: maria
platform: group
services:
- service: mobile_app_iphone_maria
- service: mobile_app_home_macbook_pro
- service: mobile_app_marry_macbook_pro
- name: all
platform: group
services:
- service: web
- service: denys
- service: marry
# - service: mobile_app_home_macbook_pro
# - service: mobile_app_marry_macbook_pro
20 changes: 0 additions & 20 deletions integrations/plant.yaml

This file was deleted.

Empty file modified integrations/powercalc.yaml
100755 → 100644
Empty file.
Loading

0 comments on commit 6ddde5c

Please # to comment.