Skip to content

Commit

Permalink
Merge pull request #6 from etiennec78/dev
Browse files Browse the repository at this point in the history
Merge v1.0.7
  • Loading branch information
etiennec78 authored Jun 16, 2024
2 parents 4646c32 + 144fcff commit 3270277
Show file tree
Hide file tree
Showing 13 changed files with 679 additions and 338 deletions.
71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Bug report
about: Report an issue with a project of this repository to help me find a fix
labels: bug
assignees: etiennec78
body:
- type: markdown
attributes:
value: |
## Bug description
- type: textarea
validations:
required: true
attributes:
label: Describe the bug
description: >-
Provide a clear and concise description of what the problem is
- type: textarea
attributes:
label: Expected behavior
description: >-
Provide a clear and concise description of what you expected to happen
- type: markdown
attributes:
value: |
## Logs
- type: textarea
attributes:
label: Blueprint configuration
description: >-
You can get your blueprint configuration by going into :
*[Settings > Automations & scenes](https://my.home-assistant.io/redirect/automations) > Blueprint name > Three dots (top right) > Edit in YAML*
- type: textarea
attributes:
label: Blueprint traces
description: >-
You can download your blueprint traces by going into :
*[Settings > Automations & scenes](https://my.home-assistant.io/redirect/automations) > Blueprint name > Traces (top right) > Three dots (top right) > Download trace*
- type: markdown
attributes:
value: |
## Environment
- type: input
id: version
validations:
required: true
attributes:
label: What version of Home Assistant are you running ?
placeholder: core-
description: >
Can be found in: [Settings > System > Repairs > Three Dots in Upper Right > System information](https://my.home-assistant.io/redirect/system_health/).
- type: dropdown
validations:
required: true
attributes:
label: What type of installation are you running?
description: >
Can be found in: [Settings > System > Repairs > Three Dots in Upper Right > System information](https://my.home-assistant.io/redirect/system_health/).
options:
- Home Assistant OS
- Home Assistant Container
- Home Assistant Supervised
- Home Assistant Core
- type: markdown
attributes:
value: |
## Additional information
- type: textarea
attributes:
label: Additional information
description: >
Add any other context about the problem here
21 changes: 15 additions & 6 deletions Automatic Gate/Extra/Automations/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Automations 🤖

## Itinerary tracker notification 📍
# Itinerary tracker notification 📍

### Description 📝

Expand All @@ -18,9 +16,12 @@ A blueprint that **notifies** all selected users when another one is **driving h

[![Import itinerary tracker notification](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fetiennec78%2FHome-Automation%2Fblob%2Fmaster%2FAutomatic+Gate%2FExtra%2FAutomations%2Fitinerary-tracker-notification.yaml)

### Example 📌

<img src="https://github.com/etiennec78/etiennec78.github.io/blob/main/media/Home%20Automation/Automatic%20Gate/Extra/Automations/itinerary-tracker-notification.gif?raw=true" width="35%">


## Gate left open notification 🔓
# Gate left open notification 🔓

### Description 📝

Expand All @@ -34,14 +35,17 @@ A blueprint that **notifies** selected users when the gate has been **left open*
* Speakers TTS support 🔊
* Adjustable notifications 💬


### Import the blueprint 🗺️

[![Import gate left open notification](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fetiennec78%2FHome-Automation%2Fblob%2Fmaster%2FAutomatic+Gate%2FExtra%2FAutomations%2Fgate-left-open-notification.yaml)

### Example 📌

<img src="https://github.com/etiennec78/etiennec78.github.io/blob/main/media/Home%20Automation/Automatic%20Gate/Extra/Automations/gate-left-open-notification.png?raw=true" width="35%">
<img src="https://github.com/etiennec78/etiennec78.github.io/blob/main/media/Home%20Automation/Automatic%20Gate/Extra/Automations/gate-left-open-persistent.png?raw=true" width="35%">

## Gate offline notification 🌐

# Gate offline notification 🌐

### Description 📝

Expand All @@ -58,3 +62,8 @@ A blueprint that **notifies** selected users when the gate has been **unavailabl
### Import the blueprint 🗺️

[![Import gate offline notification](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2Fetiennec78%2FHome-Automation%2Fblob%2Fmaster%2FAutomatic+Gate%2FExtra%2FAutomations%2Fgate-offline-notification.yaml)

### Example 📌

<img src="https://github.com/etiennec78/etiennec78.github.io/blob/main/media/Home%20Automation/Automatic%20Gate/Extra/Automations/gate-offline-notification.png?raw=true" width="35%">
<img src="https://github.com/etiennec78/etiennec78.github.io/blob/main/media/Home%20Automation/Automatic%20Gate/Extra/Automations/gate-offline-persistent.png?raw=true" width="35%">
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ blueprint:
* Adjustable notifications 💬
## More info ℹ️
* Version : 1.0.6
* Version : 1.0.7
* Set up sensors : [click here](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md)
* Github : [click here](https://github.com/etiennec78/Home-Automation/tree/master/Automatic%20Gate/Extra/Automations)
* Discord : etiennec78
Expand Down Expand Up @@ -101,6 +101,7 @@ blueprint:

variables:
gate: !input gate
left_open_delay: !input left_open_delay
persistent_notification: !input persistent_notification
speaker_tts_devices: !input speaker_tts_devices
speaker_tts_service: !input speaker_tts_service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ blueprint:
* Adjustable notifications 💬
## More info ℹ️
* Version : 1.0.6
* Version : 1.0.7
* Set up sensors : [click here](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md)
* Github : [click here](https://github.com/etiennec78/Home-Automation/tree/master/Automatic%20Gate/Extra/Automations)
* Discord : etiennec78
Expand Down Expand Up @@ -101,6 +101,7 @@ blueprint:

variables:
gate: !input gate
offline_delay: !input offline_delay
persistent_notification: !input persistent_notification
speaker_tts_devices: !input speaker_tts_devices
speaker_tts_service: !input speaker_tts_service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ blueprint:
* Adjustable notifications 💬
## More info ℹ️
* Version : 1.0.6
* Version : 1.0.7
* Set up sensors : [click here](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md)
* Flowchart : [click here](https://miro.com/app/board/uXjVMpH4Tno=/)
* Github : [click here](https://github.com/etiennec78/Home-Automation/tree/master/Automatic%20Gate/Extra/Automations)
Expand Down Expand Up @@ -97,6 +97,24 @@ blueprint:
target:
entity:
domain: tts
last_notification_sensor:
name: 📅 Last notification sensor
description: |-
An empty **[input datetime](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#last-notification-) helper** which will store the **last time** a **tracking notification was sent** to your devices
*Note : You may mute this sensor in your logs as detailed in the wiki*
selector:
entity:
filter:
domain: input_datetime
notif_refresh_rate:
name: 🔁 Notification refresh rate
description: The minimum time between sending two tracking notifications, to avoid quickly reaching the notification quota if your position is updated frequently
default: 3
selector:
number:
min: 0
max: 60
unit_of_measurement: minutes
itinerary_started_message:
name: 💬 Itinerary started notification
description: |-
Expand Down Expand Up @@ -129,6 +147,8 @@ variables:
devices_to_notify: !input notify_devices
speaker_tts_devices: !input speaker_tts_devices
speaker_tts_service: !input speaker_tts_service
last_notification_sensor: !input last_notification_sensor
notif_refresh_rate: !input notif_refresh_rate

trigger:
- platform: state
Expand Down Expand Up @@ -206,6 +226,15 @@ action:
# Only continue the loop if the wait_for_trigger was triggered by a travel time update
- condition: template
value_template: "{{ wait.trigger.id == 'travel_time' }}"
# Only continue the sequence if the user has not received a notification recently
- condition: template
value_template: "{{ as_timestamp(states(last_notification_sensor)) + notif_refresh_rate*60 >= as_timestamp(now()) }}"
# Set last notification sensor to the current time
- service: input_datetime.set_datetime
target:
entity_id: !input last_notification_sensor
data:
datetime: "{{ now() }}"
# Calculate ETA
- variables:
remaining: "{{ state_attr(travel_time_sensor, 'duration') * 60 }}"
Expand All @@ -227,7 +256,7 @@ action:
alert_once: true
timeout: "{{ remaining | int }}"
chronometer: true
when: "{{ arrival_timestamp }}"
when: "{{ arrival_timestamp | int }}"
# If "Track travel time" boolean input is set to false
else:
# Wait for the user to leave his vehicle
Expand Down
2 changes: 2 additions & 0 deletions Automatic Gate/Extra/Ble car device/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## Description 📝

A really small Arduino code to let an [ESP32](https://amzn.to/44BPk0g) sit in your car and show up as a **BLE device** so that your phone can connect to it and monitor if you are in your car

Useful if your car does not support Bluetooth or Android Auto

*Note : Please ensure that the USB ports in your car are powered off when the engine is turned off*

## How to install 🚀
Expand Down
4 changes: 2 additions & 2 deletions Automatic Gate/Extra/Esphome gate firmware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Supports the following features :
* Opening and closing **even while moving**, by sending a double pulse, and inverting time taken to move to the current position 🔄
* **Error reporting** in HA, to see why the gate decided not to move ⛔
* **BLE scanner**, with automatically turns entity status to unavailable after no signal for 25s 📡
* **BLE switch**, which allows you to **turn off** the continuous BLE scanning
* **BLE switch**, which allows you to **turn off** the continuous BLE scanning ⏯️

*Note : Since this gate firmware relies on a single opening pin without any extra sensors, please keep in mind that it won't be able to register any state change from another source than itself. If you open your gate with your remote, please also close it with your remote, as closing with your esp32 would invert the virtual state of the gate*

Expand All @@ -22,7 +22,7 @@ Supports the following features :

## How to install 🚀

### Prerequisites 🏁
### Prerequisites 📝

1. An [ESP32 with relay](https://amzn.to/3y2UtCr)
2. [ESPHome installed](https://esphome.io/guides/installing_esphome.html)
Expand Down
2 changes: 1 addition & 1 deletion Automatic Gate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Customize the options to tailor the system to your exact needs
| [BLE transmitter](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#bluetooth-transmitter-) | none | Companion | Yes | Companion app ble transmitter to automatically close gate upon leaving |
| [BLE entities](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#bluetooth-entities-) |signal_strength | Any | Yes | Each BLE entity to monitor, to close the gate when it goes to unavailable. Could be from my [esphome firmware](Extra/Esphome%20gate%20firmware) or else |
| [BLE scanner switch](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#bluetooth-scanner-switch-) | switch | Any | No | A switch which can turn on/off your BLE scanner. Not useful if you want your BLE scanner running 24/7 |
| [Nearest distance](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#last-notification-) | input_datetime | Helper | No | Only necessary for [itinerary tracker notification](Extra/Automations). Stores the timestamp of the last tracking notification sent |
| [Notify all devices](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#notify-all-devices-group-) | group | Group | No | Only necessary for [esphome firmware](Extra/Esphome%20gate%20firmware). Allows it to notify all devices when opening on in case of an error |
| [Nearest distance](https://github.com/etiennec78/Home-Automation/blob/master/Automatic%20Gate/sensors.md#nearest-distance-sensor-) | sensor | Proximity | No | Only necessary for [esphome firmware](Extra/Esphome%20gate%20firmware). Gives the distance of the nearest person from your gate |


## How to update 🔁
Expand Down
Loading

0 comments on commit 3270277

Please sign in to comment.