-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.yaml
63 lines (53 loc) · 1.87 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 48.8543
longitude: 2.3527
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Paris
# Customization file
customize: !include customize.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Discover some devices automatically
discovery:
lovelace:
mode: yaml
cast:
media_player:
- host: 192.168.1.37
# Sensors
sensor:
# Weather prediction
- platform: yr
- platform: template
sensors:
test_gitlab_projet_x_build_branch: #nom que l’on donne à notre sensor custom
value_template: "{{ state_attr('sensor.test_gitlab_projet_x', 'build branch') }}" # On recupere et affiche l’attribute ‘build branche’
friendly_name: "Branch"
entity_id: sensor.test_gitlab_projet_x #Le sensor va écouter cet entity pour changer ses valeurs
test_gitlab_projet_x_commit_date:
value_template: "{{ state_attr('sensor.test_gitlab_projet_x', 'commit date') }}"
friendly_name: "Date"
entity_id: sensor.test_gitlab_projet_x
- platform: gitlab_ci #référence du plugin
gitlab_id: xxx #ID du projet à monitorer
token: xxxx #token gitlab
name: Test gitlab projet X # va etre l'id de votre sensor
variable:
master_status:
value: "Waiting"
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml