Răsfoiți Sursa

restore static alexa config & split out configs

adri 1 lună în urmă
părinte
comite
a6cb846f34
5 a modificat fișierele cu 133 adăugiri și 94 ștergeri
  1. 42 0
      alexa.yaml
  2. 5 94
      configuration.yaml
  3. 47 0
      google.yaml
  4. 35 0
      recorder.yaml
  5. 4 0
      shell.yaml

+ 42 - 0
alexa.yaml

@@ -0,0 +1,42 @@
+endpoint: https://api.amazonalexa.com/v3/events
+client_id: amzn1.application-oa2-client.1f62328e4b76476d85571e45df1664f5
+client_secret: amzn1.oa2-cs.v1.250f686f55e8b50c2b2f459f27cdd83411df7660b4c02ddea667e82848035166
+smart_home:
+  filter:
+    include_domains:
+      - lock
+      - camera
+      - cover
+      - scene
+      - light
+      - climate
+      - humidifier
+    include_entity_globs:
+      - "sensor.*_temperature"
+      - "sensor.*_occupancy"
+      - "sensor.*_humidity"
+    exclude_entity_globs:
+      - "sensor.minion*_temperature"
+      - "*orphne*"
+      - "light.vanity_bulb_*"
+      - "*dgtlu_net*"
+      - "*localhost*"
+      - "*rt_ax86u*"
+      - "climate*_room"
+      - "climate*_structure"
+    exclude_entities:
+      - camera.agent_athena_rumpus_rumpus
+      - camera.agent_athena_horus_horus
+      - camera.agent_athena_eufy_lr_eufy_lr
+      - camera.agent_athena_ipcam_ipcam
+      - camera.agent_athena_foyer_foyer_2
+      - cover.parlor_blinds_1_cover
+      - cover.parlor_blinds_2_cover
+    include_entities:
+      - select.paradigm_light_mode
+      - fan.purity
+      - select.purity_mode
+      - sensor.purity_pm25
+      - switch.tz3000_okaz9tjs_ts011f
+      - switch.ewelink_sa_003_zigbee_switch
+      - switch.office_heater_switch

+ 5 - 94
configuration.yaml

@@ -15,39 +15,7 @@ homeassistant:
   allowlist_external_dirs:
     - /config
 
-recorder:
-  db_url: mysql://homeassistant:Parole3-Busboy-Distort@core-mariadb/homeassistant?charset=utf8mb4
-  purge_keep_days: 14
-  commit_interval: 10
-  exclude:
-    entity_globs:
-      - weather.*
-      - sensor.purity_*
-      - sensor.*_uptime
-      - camera.*
-      - sensor.*load_speed
-      - binary_sensor.*_presence_detect
-      - sensor.*ghz_temperature*
-      - sensor.*_tx*
-      - sensor.*_rx*
-      - sensor.*_summation_delivered_cost
-      - sensor.*_voltage
-      - sensor.*_ram
-      - sensor.*_light_sensor
-      - sensor.*dimm*temperature
-      - sensor.*_temperature_*ghz
-      - sensor.*_battery_temperature
-      - sensor.*_wifi*
-      - sensor.*_rssi*
-      - sensor.*_disk_*
-      - sensor.*_swap_*
-      - sensor.alexa_*
-    entities:
-      - sun.sun
-      - device_tracker.adri_s_gs22
-      - device_tracker.adri_s_pixel_4a
-      - light.minion_lcd_backlight
-      - sensor.minion_s3_temperature
+recorder: !include recorder.yaml
 
 notify:  
 - name: adris_mobile_devices
@@ -56,68 +24,9 @@ notify:
     - service: mobile_app_adri_s_pixel_4a
     - service: mobile_app_adri_s_gs22
 
-alexa:
-  endpoint: https://api.amazonalexa.com/v3/events
-  client_id: amzn1.application-oa2-client.1f62328e4b76476d85571e45df1664f5
-  client_secret: amzn1.oa2-cs.v1.250f686f55e8b50c2b2f459f27cdd83411df7660b4c02ddea667e82848035166
-  smart_home:
-    filter:
-      include_entities: >
-        {% for state in states %}
-          {% if state.attributes.get('expose') %}
-            - {{ state.entity_id }}
-          {% endif %}
-        {% endfor %}
-
-google_assistant:
-  project_id: hass-goog-0154f
-  service_account: !include sa-hass.json
-  report_state: true
-  exposed_domains:
-    # - lock
-    # - camera
-    - cover
-    - scene
-    - light
-    # - switch
-    # - climate
-    # - humidifier
-  entity_config:
-    switch.servers_power_switch:
-      expose: false
-    switch.backyard_floodlight_motion_sensor_active:
-      expose: false
-    switch.basement_stairs:
-      expose: false
-    switch.basement_zigbee_repeater:
-      expose: false
-    switch.counter:
-      expose: false
-    switch.driveway_floodlights:
-      expose: false
-    switch.noah_s_room_9bb3_lock_puck:
-      expose: false
-    switch.paradigm_effect_direction:
-      expose: false
-    switch.paradigm_effect_play_pause:
-      expose: false
-    switch.paradigm_loop_effects:
-      expose: false
-    cover.parlor_blinds_1_cover:
-      expose: false
-    cover.parlor_blinds_2_cover:
-      expose: false
-    switch.purity_led_display:
-      expose: false
-    switch.purity_purity_filter_reset:
-      expose: false
-    switch.kitten_springs_do_not_disturb:
-      expose: false
-    switch.kitten_springs_light:
-      expose: false
-    switch.kitten_springs_power:
-      expose: false
+alexa: !include alexa.yaml
 
+google_assistant: !include google.yaml
 
 uniled:
 
@@ -128,3 +37,5 @@ zha:
 automation: !include automations.yaml
 script: !include scripts.yaml
 scene: !include scenes.yaml
+
+shell_command: !include shell.yaml

+ 47 - 0
google.yaml

@@ -0,0 +1,47 @@
+project_id: hass-goog-0154f
+service_account: !include sa-hass.json
+report_state: true
+exposed_domains:
+  # - lock
+  # - camera
+  - cover
+  - scene
+  - light
+  # - switch
+  # - climate
+  # - humidifier
+entity_config:
+  switch.servers_power_switch:
+    expose: false
+  switch.backyard_floodlight_motion_sensor_active:
+    expose: false
+  switch.basement_stairs:
+    expose: false
+  switch.basement_zigbee_repeater:
+    expose: false
+  switch.counter:
+    expose: false
+  switch.driveway_floodlights:
+    expose: false
+  switch.noah_s_room_9bb3_lock_puck:
+    expose: false
+  switch.paradigm_effect_direction:
+    expose: false
+  switch.paradigm_effect_play_pause:
+    expose: false
+  switch.paradigm_loop_effects:
+    expose: false
+  cover.parlor_blinds_1_cover:
+    expose: false
+  cover.parlor_blinds_2_cover:
+    expose: false
+  switch.purity_led_display:
+    expose: false
+  switch.purity_purity_filter_reset:
+    expose: false
+  switch.kitten_springs_do_not_disturb:
+    expose: false
+  switch.kitten_springs_light:
+    expose: false
+  switch.kitten_springs_power:
+    expose: false

+ 35 - 0
recorder.yaml

@@ -0,0 +1,35 @@
+db_url: mysql://homeassistant:Parole3-Busboy-Distort@core-mariadb/homeassistant?charset=utf8mb4
+purge_keep_days: 14
+commit_interval: 10
+exclude:
+  entity_globs:
+    - weather.*
+    - sensor.purity_*
+    - sensor.*_uptime
+    - camera.*
+    - sensor.*load_speed
+    - binary_sensor.*_presence_detect
+    - sensor.*ghz_temperature*
+    - sensor.*_tx*
+    - sensor.*_rx*
+    - sensor.*_summation_delivered_cost
+    - sensor.*_voltage
+    - sensor.*_ram
+    - sensor.*_light_sensor
+    - sensor.*dimm*temperature
+    - sensor.*_temperature_*ghz
+    - sensor.*_battery_temperature
+    - sensor.*_wifi*
+    - sensor.*_rssi*
+    - sensor.*_disk_*
+    - sensor.*_swap_*
+    - sensor.alexa_*
+    - sensor.*_active_notification_count
+  entities:
+    - sun.sun
+    - device_tracker.adri_s_gs22
+    - device_tracker.adri_s_pixel_4a
+    - light.minion_lcd_backlight
+    - sensor.minion_s3_temperature
+  event_types:
+    - call_service

+ 4 - 0
shell.yaml

@@ -0,0 +1,4 @@
+cleanup_snapshots: 'find /config/www/snapshots -name "*.jpg" -mtime +7 -delete'
+save_payload_image: |
+  echo "{{ payload }}" | base64 -d > "/config/www/snapshots/{{ filename }}"
+# sync_to_alexa: python3 /config/scripts/sync_to_alexa.py