Add config
Tá an tiomantas seo le fáil i:
8
sensors/hygrometer.yaml
Comhad gnáth
8
sensors/hygrometer.yaml
Comhad gnáth
@@ -0,0 +1,8 @@
|
||||
#- platform: mitemp_bt
|
||||
# name: Bathroom Hygrometer
|
||||
# mac: "4C:65:A8:DC:4D:B2"
|
||||
# monitored_conditions:
|
||||
# - temperature
|
||||
# - humidity
|
||||
# - battery
|
||||
|
||||
9
sensors/livingroom.yaml
Comhad gnáth
9
sensors/livingroom.yaml
Comhad gnáth
@@ -0,0 +1,9 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
harmony_activity:
|
||||
value_template: >
|
||||
{% if is_state("remote.livingroom_harmony", 'on') %}
|
||||
{{ states.remote.livingroom_harmony.attributes.current_activity }}
|
||||
{% else %}
|
||||
PowerOff
|
||||
{% endif %}
|
||||
10
sensors/misc.yaml
Comhad gnáth
10
sensors/misc.yaml
Comhad gnáth
@@ -0,0 +1,10 @@
|
||||
- platform: time_date
|
||||
display_options:
|
||||
- 'time'
|
||||
- 'date'
|
||||
- 'date_time'
|
||||
- 'time_date'
|
||||
- 'time_utc'
|
||||
- 'beat'
|
||||
|
||||
- platform: dnsip
|
||||
35
sensors/mqtt.yaml
Comhad gnáth
35
sensors/mqtt.yaml
Comhad gnáth
@@ -0,0 +1,35 @@
|
||||
- platform: mqtt
|
||||
name: "mobile_fb_battery"
|
||||
state_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
|
||||
unit_of_measurement: '%'
|
||||
value_template: "{{ value_json.level }}"
|
||||
json_attributes:
|
||||
- voltage
|
||||
- temperature
|
||||
- status
|
||||
- power
|
||||
- health
|
||||
- technology
|
||||
|
||||
- platform: mqtt
|
||||
name: "mobile_fb_callstate"
|
||||
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
||||
value_template: "{{ value_json.state }}"
|
||||
json_attributes:
|
||||
- icon
|
||||
|
||||
- platform: mqtt
|
||||
name: "Attic Humidity"
|
||||
state_topic: "home/attic/homenodeTiny1/humidity"
|
||||
force_update: true
|
||||
unit_of_measurement: "%"
|
||||
- platform: mqtt
|
||||
name: "Attic Temperature"
|
||||
state_topic: "home/attic/homenodeTiny1/temperature"
|
||||
force_update: true
|
||||
unit_of_measurement: "°C"
|
||||
- platform: mqtt
|
||||
name: "Attic HeatIndex"
|
||||
state_topic: "home/attic/homenodeTiny1/heatIndex"
|
||||
force_update: true
|
||||
unit_of_measurement: "°C"
|
||||
127
sensors/social.yaml
Comhad gnáth
127
sensors/social.yaml
Comhad gnáth
@@ -0,0 +1,127 @@
|
||||
# Youtube
|
||||
# beauty
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: youtube_beauty
|
||||
resource: !secret youtube_beauty
|
||||
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
|
||||
unit_of_measurement: Subscribers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: youtube_beauty_videos
|
||||
resource: !secret youtube_beauty
|
||||
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: youtube_beauty_views
|
||||
resource: !secret youtube_beauty
|
||||
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
|
||||
force_update: true
|
||||
|
||||
# mtb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: youtube_mtb
|
||||
resource: !secret youtube_mtb
|
||||
value_template: '{{ value_json["items"][0].statistics.subscriberCount }}'
|
||||
unit_of_measurement: Subscribers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: youtube_mtb_videos
|
||||
resource: !secret youtube_mtb
|
||||
value_template: '{{ value_json["items"][0].statistics.videoCount }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: youtube_mtb_views
|
||||
resource: !secret youtube_mtb
|
||||
value_template: '{{ value_json["items"][0].statistics.viewCount }}'
|
||||
force_update: true
|
||||
|
||||
# Instagram
|
||||
#beauty
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_beauty
|
||||
resource: !secret instagram_beauty
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_beauty_follows
|
||||
resource: !secret instagram_beauty
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_beauty_media
|
||||
resource: !secret instagram_beauty
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
|
||||
# franky
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_franky
|
||||
resource: !secret instagram_franky
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_franky_follows
|
||||
resource: !secret instagram_franky
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_franky_media
|
||||
resource: !secret instagram_franky
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
|
||||
# fb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_fb
|
||||
resource: !secret instagram_fb
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_fb_follows
|
||||
resource: !secret instagram_fb
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_fb_media
|
||||
resource: !secret instagram_fb
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
|
||||
# mtb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_mtb
|
||||
resource: !secret instagram_mtb
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_mtb_follows
|
||||
resource: !secret instagram_mtb
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_mtb_media
|
||||
resource: !secret instagram_mtb
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
10
sensors/weather.yaml
Comhad gnáth
10
sensors/weather.yaml
Comhad gnáth
@@ -0,0 +1,10 @@
|
||||
- platform: buienradar
|
||||
monitored_conditions:
|
||||
- temperature
|
||||
- humidity
|
||||
- windspeed
|
||||
- winddirection
|
||||
- precipitation
|
||||
- condition
|
||||
- conditionexact
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir