Skip to content

Commit

Permalink
Tweaks, fixes v2023.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzyisj committed Aug 13, 2023
1 parent 3e06eea commit 584d52e
Show file tree
Hide file tree
Showing 150 changed files with 1,500 additions and 897 deletions.
2 changes: 1 addition & 1 deletion .HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.8.1
2023.8.2
54 changes: 29 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,57 +10,62 @@
##### <font color='cyan'>Updated 23-07-02</font>

- Alarm_control_panel: 3
- Alert: 103
- Automation: 286
- Binary_sensor: 423
- Button: 92
- Alert: 102
- Automation: 301
- Binary_sensor: 483
- Button: 98
- Calendar: 15
- Camera: 22
- Camera: 48
- Climate: 5
- Counter: 1
- Cover: 1
- Device_tracker: 51
- Device_tracker: 157
- Fan: 10
- Group: 60
- Input_boolean: 167
- Group: 61
- Input_boolean: 197
- Input_button: 1
- Input_datetime: 38
- Input_number: 181
- Input_select: 10
- Input_datetime: 47
- Input_number: 183
- Input_select: 11
- Input_text: 69
- Light: 46
- Light: 47
- Lock: 4
- Media_player: 26
- Number: 23
- Media_player: 42
- Number: 487
- Person: 1
- Proximity: 1
- Remote: 1
- Scene: 9
- Script: 79
- Select: 74
- Sensor: 993
- Scene: 8
- Script: 83
- Select: 474
- Sensor: 1392
- Siren: 2
- Sun: 1
- Switch: 123
- Timer: 55
- Update: 127
- Switch: 170
- Timer: 54
- Tts: 1
- Update: 126
- Weather: 8
- Zone: 10

---

## INSTALLED ADDONS

- Advanced SSH & Web Terminal
- Chrony
- Docker Wyze Bridge
- File editor
- Frigate NVR
- Glances
- Home Assistant Google Drive Backup
- Log Viewer
- MaryTTS
- Mosquitto broker
- MQTT Explorer
- Music Assistant
- Samba share
- SSH & Web Terminal
- Piper
- Samba Share
- SQite Web
- Studio Code Server
- UniFi Network Application
- VLC
Expand Down Expand Up @@ -92,7 +97,6 @@
- #ALARMO - alarmo issues/notes
- #APEX - apex graph issues
- #MASS - music assistant issues/notes
- #SWITCH - state-switch issues
- #INFO - info level log tag
- #WARNING - warning level log tag
- #ERROR - error level log tag
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_bypassed_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
persistant: true
sticky: true
notification_icon: "{{ states.binary_sensor.alarm_open_sensor_alert.attributes.icon }}"
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_code_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
notification_icon: mdi:shield-alert
icon_url: !secret ALERT_ICON
ledColor: !secret SEVERE_COLOR
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_disarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
timeout: 3600
notification_icon: mdi:shield-alert
icon_url: !secret ALERT_ICON
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_doorbell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
notification_icon: mdi:doorbell
icon_url: !secret DOORBELL_ICON
image: "/local{{ states('input_text.cam4_snapshot1') }}"
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_kiosk_motion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
notification_icon: mdi:motion-sensor
icon_url: !secret ALARM_ICON
image: "/local{{ states('input_text.kiosk_snapshot') }}"
Expand Down
4 changes: 2 additions & 2 deletions automations/alarm/automation_alarm_notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
persistent: true
sticky: true
chronometer: true
Expand Down Expand Up @@ -244,7 +244,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
persistent: true
sticky: true
notification_icon: "{{ states.input_boolean.alarm_triggered.attributes.icon }}"
Expand Down
2 changes: 1 addition & 1 deletion automations/alarm/automation_alarm_open_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
priority: high
persistant: true
sticky: true
visibility: public
visibility: private
notification_icon: "{{ states.binary_sensor.alarm_open_sensor_alert.attributes.icon }}"
icon_url: !secret ALARM_ICON
ledColor: !secret CRITICAL_COLOR
Expand Down
149 changes: 73 additions & 76 deletions automations/camera/automation_camera_object_detected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,84 +30,81 @@
- condition: template
value_template: "{{ iif(camera == 'front_door','porch' in entered_zones,true) }}"
action:
- if:
- condition: template
value_template: >
{{ is_state('input_boolean.object_tts_notifications','on')
and is_state('binary_sensor.someone_home','on')
and (is_state('binary_sensor.camera_object_tod','on')
or camera in ['front_door','side_door']) }}
then:
- service: script.turn_on
target:
entity_id: script.tts_play
data:
variables:
media_player: media_player.kiosk_internal
min_volume: 60
quiet_play: true
night_play: true
tts_service: tts.cloud_say
gender: male
language: en-GB
message: >
{% if camera in ['front_door','side_door','back_door','patio_door','back_house',
'side_gate_front','side_gate_back'] %}
There is a {{ object }} at the {{ camera|replace('_',' ') }}!
{% elif camera in ['side_drive','front_drive'] %}
There is a {{ object }} in the {{ camera|replace('_',' ') }}way!
{% elif camera in ['front_yard','back_yard'] %}
There is a {{ object }} in the {{ camera|replace('_',' ') }}!
{% elif camera == 'garage_inside' %}
There is a {{ object }} inside the garage!
{% else %}
An object was detected!
{% endif %}
continue_on_error: true
- parallel:
- sequence:
- if:
- condition: template
value_template: >
{{ is_state('input_boolean.object_tts_notifications','on')
and is_state('binary_sensor.someone_home','on')
and (is_state('binary_sensor.camera_object_tod','on')
or camera in ['front_door','side_door']) }}
then:
- service: script.tts_play
data:
media_player: media_player.kiosk_internal
min_volume: 60
quiet_play: true
night_play: true
tts_service: tts.piper
gender: male
language: en-GB
message: >
{% if camera in ['front_door','side_door','back_door','patio_door','back_house',
'side_gate_front','side_gate_back'] %}
There is a {{ object }} at the {{ camera|replace('_',' ') }}!
{% elif camera in ['side_drive','front_drive'] %}
There is a {{ object }} in the {{ camera|replace('_',' ') }}way!
{% elif camera in ['front_yard','back_yard'] %}
There is a {{ object }} in the {{ camera|replace('_',' ') }}!
{% elif camera == 'garage_inside' %}
There is a {{ object }} inside the garage!
{% else %}
An object was detected!
{% endif %}
continue_on_error: true

- service: script.turn_on
target:
entity_id: script.cast_camera
data:
variables:
camera: "{{ camera }}"
continue_on_error: true
- service: script.cast_camera
data:
camera: "{{ camera }}"
continue_on_error: true

- if:
- condition: state
entity_id: input_boolean.object_mobile_notifications
state: "on"
- sequence:
- if:
- condition: state
entity_id: input_boolean.object_mobile_notifications
state: "on"

- condition: template
value_template: "{{ object != 'dog' }}"
then:
- service: notify.jason
data:
title: "{{ camera|replace('_',' ')|title }} Camera"
message: "A {{ object }} was detected @ {{ start_time|timestamp_custom('%-I:%M %p') }}."
data:
tag: "{{ id }}"
group: Alarm
channel: Alert
importance: max
ttl: 0
priority: high
visibility: public
when: "{{ start_time }}"
notification_icon: mdi:cctv
icon_url: !secret ALARM_ICON
image: "{{ states('input_text.base_url') }}/api/frigate/notifications/{{ id }}/thumbnail.jpg?format=android"
ledColor: !secret WARNING_COLOR
color: !secret WARNING_COLOR
vibrationPattern: !secret ALERT_VIBRATION
clickAction: "/lovelace/{{ camera|replace('_','-') ~ '-camera' }}"
actions:
- title: "Cameras"
action: URI
uri: !secret LOREX_URI
- condition: template
value_template: "{{ object != 'dog' }}"
then:
- service: notify.jason
data:
title: "{{ camera|replace('_',' ')|title }} Camera"
message: "A {{ object }} was detected @ {{ start_time|timestamp_custom('%-I:%M %p') }}."
data:
tag: "{{ id }}"
group: Alarm
channel: Alert
importance: max
ttl: 0
priority: high
visibility: private
when: "{{ start_time }}"
notification_icon: mdi:cctv
icon_url: !secret ALARM_ICON
image: "{{ states('input_text.base_url') }}/api/frigate/notifications/{{ id }}/thumbnail.jpg?format=android"
ledColor: !secret WARNING_COLOR
color: !secret WARNING_COLOR
vibrationPattern: !secret ALERT_VIBRATION
clickAction: "/lovelace/{{ camera|replace('_','-') ~ '-camera' }}"
actions:
- title: "Cameras"
action: URI
uri: !secret LOREX_URI

- title: "Disable Cam"
action: "{{ camera }}_detection_off"
- title: "Disable Cam"
action: "{{ camera }}_detection_off"

- title: "Pause Alerts"
action: pause_camera_object_notifications
- title: "Pause Alerts"
action: pause_camera_object_notifications
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
importance: max
ttl: 0
priority: high
visibility: public
visibility: private
notification_icon: mdi:cctv
icon_url: !secret ALERT_ICON
image: "/local{{ states('input_text.' ~ camera ~ '_snapshot') }}"
Expand Down
Loading

0 comments on commit 584d52e

Please sign in to comment.