Move subconfigs to subdir
Tá an tiomantas seo le fáil i:
5
config/sensors/devices.yaml
Comhad gnáth
5
config/sensors/devices.yaml
Comhad gnáth
@@ -0,0 +1,5 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
device_mobile_fb_battery:
|
||||
value_template: '{{ states.device_tracker.mobile_fb.attributes.battery }}'
|
||||
unit_of_measurement: '%'
|
||||
9
config/sensors/livingroom.yaml
Comhad gnáth
9
config/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 %}
|
||||
19
config/sensors/misc.yaml
Comhad gnáth
19
config/sensors/misc.yaml
Comhad gnáth
@@ -0,0 +1,19 @@
|
||||
- platform: time_date
|
||||
display_options:
|
||||
- 'time'
|
||||
- 'date'
|
||||
- 'date_time'
|
||||
- 'time_date'
|
||||
- 'time_utc'
|
||||
- 'beat'
|
||||
|
||||
- platform: dnsip
|
||||
|
||||
- platform: deutsche_bahn
|
||||
from: "Salzbergen"
|
||||
to: "Münster HBF"
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
salzbergen_to_munster_hbf_ontime:
|
||||
value_template: '{{ states.sensor.salzbergen_to_munster_hbf.attributes.ontime }}'
|
||||
44
config/sensors/mqtt.yaml
Comhad gnáth
44
config/sensors/mqtt.yaml
Comhad gnáth
@@ -0,0 +1,44 @@
|
||||
- platform: mqtt
|
||||
name: hygro_bathroom_parents_temperature
|
||||
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_temperature/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "°C"
|
||||
- platform: mqtt
|
||||
name: hygro_bathroom_parents_humidity
|
||||
state_topic: "homeassistant-slaves-states/office/sensor/parents_bathroom_hygrometer_humidity/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "%"
|
||||
|
||||
- platform: mqtt
|
||||
name: hygro_bathroom_kids_temperature
|
||||
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_temperature/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "°C"
|
||||
- platform: mqtt
|
||||
name: hygro_bathroom_kids_humidity
|
||||
state_topic: "homeassistant-slaves-states/office/sensor/kids_bathroom_hygrometer_humidity/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "%"
|
||||
|
||||
- platform: mqtt
|
||||
name: hygro_hwr_temperature
|
||||
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_temperature/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "°C"
|
||||
- platform: mqtt
|
||||
name: hygro_hwr_humidity
|
||||
state_topic: "homeassistant-slaves-states/livingroom/sensor/hwr_hygrometer_humidity/state"
|
||||
force_update: true
|
||||
unit_of_measurement: "%"
|
||||
|
||||
- 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_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
|
||||
- platform: mqtt
|
||||
name: "mobile_fb_callstate"
|
||||
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
||||
value_template: "{{ value_json.state }}"
|
||||
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
|
||||
220
config/sensors/social.yaml
Comhad gnáth
220
config/sensors/social.yaml
Comhad gnáth
@@ -0,0 +1,220 @@
|
||||
# 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
|
||||
|
||||
# Bit.ly
|
||||
# http://bit.ly/blog-jbb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: bitly_blog_bb
|
||||
resource: !secret bitly_blog_bb
|
||||
value_template: '{{ value_json.data.link_clicks }}'
|
||||
force_update: true
|
||||
# http://bit.ly/insta-jbb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: bitly_instagram_bb
|
||||
resource: !secret bitly_instagram_bb
|
||||
value_template: '{{ value_json.data.link_clicks }}'
|
||||
force_update: true
|
||||
#http://bit.ly/impressum-jbb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: bitly_impressum_bb
|
||||
resource: !secret bitly_impressum_bb
|
||||
value_template: '{{ value_json.data.link_clicks }}'
|
||||
force_update: true
|
||||
# http://bit.ly/youtube-bb
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: bitly_youtube_bb
|
||||
resource: !secret bitly_youtube_bb
|
||||
value_template: '{{ value_json.data.link_clicks }}'
|
||||
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
|
||||
|
||||
# medieval
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_medieval
|
||||
resource: !secret instagram_medieval
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_medieval_follows
|
||||
resource: !secret instagram_medieval
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_medieval_media
|
||||
resource: !secret instagram_medieval
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
|
||||
# lotte
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_lotte
|
||||
resource: !secret instagram_lotte
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_lotte_follows
|
||||
resource: !secret instagram_lotte
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_lotte_media
|
||||
resource: !secret instagram_lotte
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
|
||||
# codedwithlove
|
||||
- platform: rest
|
||||
scan_interval: 300
|
||||
name: instagram_codedwithlove
|
||||
resource: !secret instagram_codedwithlove
|
||||
value_template: '{{ value_json.data.counts.followed_by }}'
|
||||
unit_of_measurement: Followers
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 900
|
||||
name: instagram_codedwithlove_follows
|
||||
resource: !secret instagram_codedwithlove
|
||||
value_template: '{{ value_json.data.counts.follows }}'
|
||||
force_update: true
|
||||
- platform: rest
|
||||
scan_interval: 600
|
||||
name: instagram_codedwithlove_media
|
||||
resource: !secret instagram_codedwithlove
|
||||
value_template: '{{ value_json.data.counts.media }}'
|
||||
force_update: true
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir