Skip to content

Commit db7e2a3

Browse files
authored
Merge pull request #13 from ptorrezao/v2020
V2020
2 parents da1cdc6 + 031ba64 commit db7e2a3

File tree

213 files changed

+1451
-18729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+1451
-18729
lines changed

.HA_VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2020.12.1

.circleci/config.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.gitignore

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
1-
known_devices.yaml
2-
secrets.yaml
3-
deps/
4-
5-
*.pyc
6-
7-
custom_components/media_player/__pycache__/
8-
9-
tts/
10-
www/tmp/
11-
12-
\.HA_VERSION
13-
14-
*.log
15-
16-
\.uuid
17-
18-
\.storage/
19-
20-
home-assistant_v2\.db
21-
22-
home-assistant_v2\.db-shm
23-
24-
home-assistant_v2\.db-wal
25-
26-
\.vscode/
27-
28-
\.recycle/
29-
www/bq_ana.jpg
30-
www/pedro.png
31-
www/madalena.jpg
1+
secrets.yaml
2+
.HA_VERSION
3+
home-assistant.log
4+
5+
/.storage
6+
!/.storage/person
7+
/.cloud
8+
/deps
9+
/image
10+
tts/*
11+
custom_components/erse/*
12+
custom_components/hacs/*
13+
www/community/*

.ps4-games.BC60A7735E43_a337.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"CUSA13687": {
3+
"media_title": "WORLD OF WARSHIPS: LEGENDS",
4+
"media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/PT/pt/19/EP1566-CUSA13687_00-0002000000000000/1608542689000/image",
5+
"media_content_type": "game",
6+
"locked": false
7+
},
8+
"CUSA02168": {
9+
"media_title": "Gran Turismo\u2122 Sport",
10+
"media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/PT/pt/19/EP9001-CUSA02168_00-GTSPORT000000000/1608597157000/image",
11+
"media_content_type": "game",
12+
"locked": false
13+
},
14+
"CUSA15277": {
15+
"media_title": "Call of Duty\u00ae: Modern Warfare\u00ae",
16+
"media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/PT/pt/19/EP0002-CUSA15277_00-CODMWSTANDARD001/1608214765000/image",
17+
"media_content_type": "game",
18+
"locked": false
19+
},
20+
"CUSA04294": {
21+
"media_title": "Watch Dogs\u00ae2",
22+
"media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/PT/pt/19/EP0001-CUSA04294_00-WD2FULLGAME00000/1608117916000/image",
23+
"media_content_type": "game",
24+
"locked": false
25+
},
26+
"CUSA18131": {
27+
"media_title": "Paraiso Island",
28+
"media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/PT/pt/19/EP1580-CUSA18131_00-PARAISOISLANDEUR/1606698678000/image",
29+
"media_content_type": "game",
30+
"locked": false
31+
}
32+
}

.shopping_list.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

automations.yaml

100755100644
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
- alias: Reset garagePIR state
2-
hide_entity: true
3-
initial_state: 'on'
4-
trigger:
5-
- platform: state
6-
entity_id: binary_sensor.sensor
7-
from: 'off'
8-
to: 'on'
9-
for:
10-
seconds: 5
11-
action:
12-
- service: mqtt.publish
13-
data:
14-
topic: tele/RFBridge/RESULT
15-
payload: DBAFE9off
1+
[]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
blueprint:
2+
name: Motion-activated Light
3+
description: Turn on a light when motion is detected.
4+
domain: automation
5+
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
6+
input:
7+
motion_entity:
8+
name: Motion Sensor
9+
selector:
10+
entity:
11+
domain: binary_sensor
12+
device_class: motion
13+
light_target:
14+
name: Light
15+
selector:
16+
target:
17+
entity:
18+
domain: light
19+
no_motion_wait:
20+
name: Wait time
21+
description: Time to leave the light on after last motion is detected.
22+
default: 120
23+
selector:
24+
number:
25+
min: 0
26+
max: 3600
27+
unit_of_measurement: seconds
28+
29+
# If motion is detected within the delay,
30+
# we restart the script.
31+
mode: restart
32+
max_exceeded: silent
33+
34+
trigger:
35+
platform: state
36+
entity_id: !input motion_entity
37+
from: "off"
38+
to: "on"
39+
40+
action:
41+
- service: light.turn_on
42+
target: !input light_target
43+
- wait_for_trigger:
44+
platform: state
45+
entity_id: !input motion_entity
46+
from: "on"
47+
to: "off"
48+
- delay: !input no_motion_wait
49+
- service: light.turn_off
50+
target: !input light_target
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
blueprint:
2+
name: Zone Notification
3+
description: Send a notification to a device when a person leaves a specific zone.
4+
domain: automation
5+
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml
6+
input:
7+
person_entity:
8+
name: Person
9+
selector:
10+
entity:
11+
domain: person
12+
zone_entity:
13+
name: Zone
14+
selector:
15+
entity:
16+
domain: zone
17+
notify_device:
18+
name: Device to notify
19+
description: Device needs to run the official Home Assistant app to receive notifications.
20+
selector:
21+
device:
22+
integration: mobile_app
23+
24+
trigger:
25+
platform: state
26+
entity_id: !input person_entity
27+
28+
variables:
29+
zone_entity: !input zone_entity
30+
# This is the state of the person when it's in this zone.
31+
zone_state: "{{ states[zone_entity].name }}"
32+
person_entity: !input person_entity
33+
person_name: "{{ states[person_entity].name }}"
34+
35+
condition:
36+
condition: template
37+
value_template: "{{ trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
38+
39+
action:
40+
domain: mobile_app
41+
type: notify
42+
device_id: !input notify_device
43+
message: "{{ person_name }} has left {{ zone_state }}"

0 commit comments

Comments
 (0)