mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-20 12:46:45 +00:00
Updated to V5 Version - Hassio Style
Lots of updates here. Updated my Readme - Added Affiliate Links, added some more information, better organized devices Updated gitignore with paths realtive to my hassio config Combined my switches and lights into single yaml files instead of the directory structure previously Added zigbee2mqtt.yaml to packages - contains automations and such for zigbee2mqtt Archived my previous version in the V4-config branch.
This commit is contained in:
50
config/sensors/batteries.yaml
Executable file
50
config/sensors/batteries.yaml
Executable file
@@ -0,0 +1,50 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
jeff_iphone_batt:
|
||||
unit_of_measurement: '%'
|
||||
value_template: >-
|
||||
{%- if states.device_tracker.jeffreystonesiphone.attributes.battery %}
|
||||
{{ states.device_tracker.jeffreystonesiphone.attributes.battery | round(1) }}
|
||||
{% else %}
|
||||
{{ states.sensor.jeff_iphone_batt.state }}
|
||||
{%- endif %}
|
||||
icon_template: '{%- if is_state("sensor.jeff_iphone_batt", "unknown") %}mdi:battery-unknown{%- elif is_state_attr("device_tracker.jeffreystonesiphone", "battery_status", "Charging") %}mdi:battery-charging{%- elif states.device_tracker.jeffreystonesiphone.attributes.battery <= 5 %}mdi:battery-outline{%- elif states.device_tracker.jeffreystonesiphone.attributes.battery >= 95 %}mdi:battery{% else %}mdi:battery-{{(states.device_tracker.jeffreystonesiphone.attributes.battery|float / 10)|round*10}}{%- endif %}'
|
||||
kat_iphone_batt:
|
||||
unit_of_measurement: '%'
|
||||
value_template: >-
|
||||
{%- if states.device_tracker.katherinestonesiphone.attributes.battery %}
|
||||
{{ states.device_tracker.katherinestonesiphone.attributes.battery | round(1) }}
|
||||
{% else %}
|
||||
{{ states.sensor.kat_iphone_batt.state }}
|
||||
{%- endif %}
|
||||
icon_template: '{%- if is_state("sensor.kat_iphone_batt", "unknown") %}mdi:battery-unknown{%- elif is_state_attr("device_tracker.katherinestonesiphone", "battery_status", "Charging") %}mdi:battery-charging{%- elif states.device_tracker.katherinestonesiphone.attributes.battery <= 5 %}mdi:battery-outline{%- elif states.device_tracker.katherinestonesiphone.attributes.battery >= 95 %}mdi:battery{% else %}mdi:battery-{{(states.device_tracker.katherinestonesiphone.attributes.battery|float / 10)|round*10}}{%- endif %}'
|
||||
- platform: mqtt
|
||||
name: "Front Door Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_27/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Laundry Door Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_26/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Kitchen Smoke Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_19/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Attic Door Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_18/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Washer Door Battery"
|
||||
state_topic: "zwave2mqtt/washer_door/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Back Door Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_28/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Side Door Battery"
|
||||
state_topic: "zwave2mqtt/side_door/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Garage Door Battery"
|
||||
state_topic: "zwave2mqtt/nodeID_16/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Garage Motion Battery"
|
||||
state_topic: "zwave2mqtt/garage_motion/128/1/0"
|
||||
- platform: mqtt
|
||||
name: "Dome Alarm"
|
||||
state_topic: "zwave2mqtt/nodeID_21/128/1/0"
|
28
config/sensors/finance.yaml
Executable file
28
config/sensors/finance.yaml
Executable file
@@ -0,0 +1,28 @@
|
||||
# - platform: alpha_vantage
|
||||
# api_key: !secret alpha_vantage
|
||||
# symbols:
|
||||
# #- symbol: SIRI
|
||||
# # name: Sirius
|
||||
# #- symbol: BAC
|
||||
# # name: BoA
|
||||
# #- symbol: INTC
|
||||
# # name: Intel
|
||||
# - symbol: DIS
|
||||
# name: Disney
|
||||
# #- symbol: BKS
|
||||
# # name: Barnes & Noble
|
||||
- platform: mqtt
|
||||
name: "Disney"
|
||||
state_topic: "stock/DIS/price"
|
||||
- platform: mqtt
|
||||
name: "BoA"
|
||||
state_topic: "stock/BAC/price"
|
||||
- platform: mqtt
|
||||
name: "Intel"
|
||||
state_topic: "stock/INTC/price"
|
||||
- platform: mqtt
|
||||
name: "Sirius"
|
||||
state_topic: "stock/SIRI/price"
|
||||
- platform: mqtt
|
||||
name: "Barnes and Nobel"
|
||||
state_topic: "stock/BKS/price"
|
13
config/sensors/github.yaml
Executable file
13
config/sensors/github.yaml
Executable file
@@ -0,0 +1,13 @@
|
||||
- platform: github
|
||||
access_token: !secret github_token
|
||||
repositories:
|
||||
- path: 'thejeffreystone/home-assistant-configuration'
|
||||
- platform: command_line
|
||||
command: 'curl https://api.github.com/repos/thejeffreystone/home-assistant-configuration'
|
||||
name: GitHub Stats
|
||||
scan_interval: 20000
|
||||
value_template: '{{ value_json.name }}'
|
||||
json_attributes:
|
||||
- open_issues
|
||||
- stargazers_count
|
||||
|
24
config/sensors/google_travel_time.yaml
Executable file
24
config/sensors/google_travel_time.yaml
Executable file
@@ -0,0 +1,24 @@
|
||||
- platform: waze_travel_time
|
||||
name: "Jeff ETT Home"
|
||||
#api_key: !secret google_api
|
||||
origin: device_tracker.jeffreystonesiphone
|
||||
destination: zone.home
|
||||
region: 'US'
|
||||
- platform: waze_travel_time
|
||||
name: "Kat ETT Home"
|
||||
#api_key: !secret google_api
|
||||
origin: device_tracker.katherinestonesiphone
|
||||
destination: zone.home
|
||||
region: 'US'
|
||||
- platform: waze_travel_time
|
||||
name: "Home To Summit"
|
||||
# api_key: !secret google_api
|
||||
origin: zone.home
|
||||
destination: zone.summit
|
||||
region: 'US'
|
||||
- platform: waze_travel_time
|
||||
name: "Home To Zoo"
|
||||
# api_key: !secret google_api#
|
||||
origin: zone.home
|
||||
destination: zone.zoo_atlanta
|
||||
region: 'US'
|
112
config/sensors/house.yaml
Executable file
112
config/sensors/house.yaml
Executable file
@@ -0,0 +1,112 @@
|
||||
- platform: mqtt
|
||||
name: "Washer Status"
|
||||
state_topic: "house/washer/status"
|
||||
- platform: history_stats
|
||||
name: Jeff Driving Time
|
||||
entity_id: sensor.jeff_driving
|
||||
state: 'on'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
days: 7
|
||||
- platform: history_stats
|
||||
name: Kat Driving Time
|
||||
entity_id: sensor.kat_driving
|
||||
state: 'on'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
days: 7
|
||||
- platform: history_stats
|
||||
name: Speech time
|
||||
entity_id: media_player.theater
|
||||
state: 'playing'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
days: 7
|
||||
- platform: history_stats
|
||||
name: AppleTV time
|
||||
entity_id: media_player.apple_tv
|
||||
state: 'playing'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
hours: 24
|
||||
- platform: history_stats
|
||||
name: Roku time
|
||||
entity_id: media_player.bedroom
|
||||
state: 'playing'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
hours: 24
|
||||
- platform: history_stats
|
||||
name: Washer Time
|
||||
entity_id: sensor.washer_status
|
||||
state: 'running'
|
||||
type: time
|
||||
end: '{{ now() }}'
|
||||
duration:
|
||||
days: 7
|
||||
- platform: min_max
|
||||
name: Outside Temp Stats
|
||||
entity_ids:
|
||||
- sensor.accurite_back_porch_temperature
|
||||
- platform: min_max
|
||||
name: Garage Temp Stats
|
||||
entity_ids:
|
||||
- sensor.accurite_garage_temperature
|
||||
- platform: min_max
|
||||
name: Inside Temp Stats
|
||||
entity_ids:
|
||||
- sensor.craft_room_temperature
|
||||
- sensor.kitchen_temperature
|
||||
- sensor.living_room_temperature
|
||||
- sensor.master_bedroom_temperature
|
||||
- sensor.skylar_room_temperature
|
||||
- platform: arlo
|
||||
monitored_conditions:
|
||||
- captured_today
|
||||
- last_capture
|
||||
- total_cameras
|
||||
- battery_level
|
||||
- signal_strength
|
||||
- platform: template
|
||||
sensors:
|
||||
sensor_count:
|
||||
friendly_name: 'Number of Sensors'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.sensor | list | count }}
|
||||
automation_count:
|
||||
friendly_name: 'Number of Automations'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.automation| list | count }}
|
||||
script_count:
|
||||
friendly_name: 'Number of Scripts'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.script | list | count }}
|
||||
binary_sensor_count:
|
||||
friendly_name: 'Number of Binary Sensors'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.binary_sensor | list | count }}
|
||||
tracker_count:
|
||||
friendly_name: 'Number of Devices'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.device_tracker| list | count }}
|
||||
lights_count:
|
||||
friendly_name: 'Number of Lights'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.light | list | count }}
|
||||
camera_count:
|
||||
friendly_name: 'Number of online Cameras'
|
||||
entity_id: []
|
||||
value_template: >-
|
||||
{{ states.camera | list | count }}
|
||||
|
29
config/sensors/power.yaml
Executable file
29
config/sensors/power.yaml
Executable file
@@ -0,0 +1,29 @@
|
||||
- platform: mqtt
|
||||
name: "Washer"
|
||||
state_topic: "zwave2mqtt/washer/50/1/0"
|
||||
device_class: "power"
|
||||
unit_of_measurement: "kWh"
|
||||
|
||||
- platform: mqtt
|
||||
name: "Washer Power 1"
|
||||
state_topic: "zwave2mqtt/washer/49/1/4"
|
||||
device_class: "power"
|
||||
unit_of_measurement: "W"
|
||||
|
||||
- platform: mqtt
|
||||
name: "Washer_Power"
|
||||
state_topic: "zwave2mqtt/washer/50/1/8"
|
||||
device_class: "power"
|
||||
unit_of_measurement: "W"
|
||||
|
||||
- platform: mqtt
|
||||
name: "Washer Power 3"
|
||||
state_topic: "zwave2mqtt/washer/50/1/9"
|
||||
device_class: "power"
|
||||
unit_of_measurement: "W"
|
||||
|
||||
- platform: mqtt
|
||||
name: "Washer Power kwh"
|
||||
state_topic: "zwave2mqtt/washer/50/1/1"
|
||||
device_class: "power"
|
||||
unit_of_measurement: "kWh"
|
6
config/sensors/users.yaml
Executable file
6
config/sensors/users.yaml
Executable file
@@ -0,0 +1,6 @@
|
||||
- platform: mqtt
|
||||
name: "Jeff Destination"
|
||||
state_topic: "jeff/driving/destination"
|
||||
- platform: mqtt
|
||||
name: "Kat Destination"
|
||||
state_topic: "kat/driving/destination"
|
92
config/sensors/weather.yaml
Executable file
92
config/sensors/weather.yaml
Executable file
@@ -0,0 +1,92 @@
|
||||
- platform: darksky
|
||||
api_key: !secret FORCAST_API_KEY
|
||||
forecast:
|
||||
- 0
|
||||
monitored_conditions:
|
||||
- summary
|
||||
- icon
|
||||
- nearest_storm_distance
|
||||
- nearest_storm_bearing
|
||||
- precip_type
|
||||
- precip_intensity
|
||||
- precip_probability
|
||||
- temperature
|
||||
- temperature_high
|
||||
- temperature_low
|
||||
- apparent_temperature
|
||||
- dew_point
|
||||
- wind_speed
|
||||
- wind_bearing
|
||||
- cloud_cover
|
||||
- humidity
|
||||
- pressure
|
||||
- visibility
|
||||
- ozone
|
||||
- minutely_summary
|
||||
- hourly_summary
|
||||
- daily_summary
|
||||
- precip_intensity_max
|
||||
scan_interval:
|
||||
# At least one of these must be specified:
|
||||
days: 0
|
||||
hours: 0
|
||||
minutes: 5
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
## Accurite 158 - Back Porch
|
||||
- platform: mqtt
|
||||
name: "Accurite Back Porch Temperature"
|
||||
state_topic: "house/accurite-158/temperature"
|
||||
- platform: mqtt
|
||||
name: "Accurite Back Porch Humidity"
|
||||
state_topic: "house/accurite-158/humidity"
|
||||
# - platform: mqtt
|
||||
# name: "Accurite Back Porch Status"
|
||||
# state_topic: "house/accurite-158/status"
|
||||
# - platform: mqtt
|
||||
# name: "Accurite Back Porch Battery"
|
||||
# state_topic: "house/accurite-158/battery"
|
||||
- platform: mqtt
|
||||
name: "Accurite Back Porch Model"
|
||||
state_topic: "house/accurite-158/model"
|
||||
- platform: mqtt
|
||||
name: "Accurite Back Porch lupdate"
|
||||
state_topic: "house/accurite-158/lastupdate"
|
||||
- platform: mqtt
|
||||
name: "Accurite Garage Temperature"
|
||||
state_topic: "house/accurite-10968/temperature"
|
||||
- platform: mqtt
|
||||
name: "Accurite Garage Humidity"
|
||||
state_topic: "house/accurite-10968/humidity"
|
||||
- platform: mqtt
|
||||
name: "Accurite Garage Model"
|
||||
state_topic: "house/accurite-10968/model"
|
||||
- platform: mqtt
|
||||
name: "Accurite Garage lupdate"
|
||||
state_topic: "house/accurite-10968/lastupdate"
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
clothing_forecast:
|
||||
friendly_name: "Clothing Forecast"
|
||||
unit_of_measurement: ''
|
||||
value_template: >-
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float > 63 %}
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float < 80 %}
|
||||
Nice
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float > 95 %}
|
||||
Hot
|
||||
{% else %}
|
||||
Toasty
|
||||
{%- endif %}
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float < 64 %}
|
||||
{%- if states('sensor.dark_sky_daytime_high_temperature_0d')|float < 32 %}
|
||||
Freezing
|
||||
{% elif states('sensor.dark_sky_daytime_high_temperature_0d')|float > 50 %}
|
||||
Chilly
|
||||
{% else %}
|
||||
Cold
|
||||
{%- endif %}
|
||||
{% else %}
|
||||
Unknown
|
||||
{%- endif %}
|
Reference in New Issue
Block a user