Skip to content

Commit

Permalink
Config update
Browse files Browse the repository at this point in the history
  • Loading branch information
bastshoes committed Oct 9, 2017
1 parent c6c2056 commit 02f3f16
Show file tree
Hide file tree
Showing 10 changed files with 252 additions and 61 deletions.
2 changes: 1 addition & 1 deletion automation/a_updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
data:
message: "{{ states('updater.updater') }} update for Home Assistant is available."
title: 'HASS update'
target: "device/meizu"
target: "device/Meizu"
55 changes: 42 additions & 13 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,20 @@ recorder:
- sensor.ha_installed_version
- sensor.pws_station_id
- sensor.pws_location

- sensor.pws_weather_1d_metric
- sensor.pws_weather_1h
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_2h
- sensor.pws_weather_2n_metric
- sensor.pws_weather_3d_metric
- sensor.pws_weather_3n_metric
- sensor.pws_weather_4d_metric
- sensor.pws_weather_4h
- sensor.pws_weather_4n_metric
- sensor.pws_weather_6h
- sensor.pws_weather_8h
- sensor.pushbullet_title


# Enables support for tracking state changes over time.
Expand Down Expand Up @@ -146,6 +159,20 @@ logbook:
- sensor.ha_installed_version
- sensor.pws_location
- sensor.pws_station_id
- sensor.pws_weather_1d_metric
- sensor.pws_weather_1h
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_2h
- sensor.pws_weather_2n_metric
- sensor.pws_weather_3d_metric
- sensor.pws_weather_3n_metric
- sensor.pws_weather_4d_metric
- sensor.pws_weather_4h
- sensor.pws_weather_4n_metric
- sensor.pws_weather_6h
- sensor.pws_weather_8h
- sensor.pushbullet_title

# Track the sun
sun:
Expand Down Expand Up @@ -176,25 +203,26 @@ notify:
- name: pushbullet
platform: pushbullet
api_key: !secret pushbullet_key
- name: zanzito
platform: zanzito
device-name: redminote3

# Xiaomi
xiaomi:
check_ghost: True
xiaomi_aqara:
gateways:
- sid: !secret xiaomi_sid
- mac: !secret xiaomi_mac
key: !secret xiaomi_key

# Logger
logger:
default: warn
logs:
custom_components.xiaomi: debug
custom_components.sensor.xiaomi: debug
custom_components.binary_sensor.xiaomi: debug
custom_components.light.xiaomi: debug
custom_components.switch.xiaomi: debug
# components.light.osramlightify: debug
homeassistant.components.light.osramlightify: debug
# homeassistant.components.xiaomi_aqara: debug
# homeassistant.components.sensor.xiaomi: debug
homeassistant.components.binary_sensor.xiaomi_aqara: debug
# homeassistant.components.light.xiaomi: debug
# homeassistant.components.switch.xiaomi: debug
# homeassistant.components.light.osramlightify: debug

# Scripts
script: !include_dir_merge_named scripts/
Expand All @@ -213,9 +241,10 @@ media_player:
# Text to speech
tts:
- platform: yandextts
api_key: '8955f891-93e5-4ce7-8168-b9fd9d9de40e'
api_key: !secret yandex_key
language: 'ru-RU'
codec: mp3
voice: oksana
speed: 2
emotion: good
speed: 1.0

3 changes: 3 additions & 0 deletions customize/bastshoes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sensor.redminote3_indoor_location:
friendly_name: "Indoor location"
icon: mdi:home-map-marker
2 changes: 1 addition & 1 deletion device_tracker/mqtt_json.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- platform: mqtt_json
devices:
bastshoes_redminote3: "zanzito/RedmiNote3/location"
bastshoes_redminote3: "zanzito/redminote3/location"
42 changes: 32 additions & 10 deletions groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ xiaomi_card:
- light.gateway_light_f0b4299a681d
- light.kitchen
- binary_sensor.switch_158d0000eef136
- light.switch

calendar_card:
name: Calendar
Expand All @@ -36,10 +37,17 @@ outside_card:
- sensor.pws_wind_kph
- sensor.mmhg
# - sensor.pws_pressure_mb
- sensor.dark_sky_precip_probability
- sensor.dark_sky_precip
- sensor.dsn24h
- sensor.dsn7d
# - sensor.pws_weather_1d_metric
# - sensor.pws_weather_1n_metric
- sensor.pws_weather_1h
- sensor.pws_weather_2h
- sensor.pws_weather_4h
- sensor.pws_weather_6h
- sensor.pws_weather_8h
# - sensor.dark_sky_precip_probability
# - sensor.dark_sky_precip
# - sensor.dsn24h
# - sensor.dsn7d

default_view:
view: yes
Expand Down Expand Up @@ -69,6 +77,7 @@ redminote_card:
- device_tracker.bastshoes_redminote3
- sensor.andrey_redminote3_battery
- binary_sensor.redminote3_status
- sensor.redminote3_indoor_location
- input_boolean.find_redminote

andrey_commute_card:
Expand All @@ -87,12 +96,24 @@ andrey_view:
- camera.andrey_location
- group.redminote_card

darksky_card:
name: Forecast
entities:
# darksky_card:
# name: Forecast
# entities:
# - sensor.dark_sky_precip_probability
- sensor.dsn24h
- sensor.dsn7d
# - sensor.dsn24h
# - sensor.dsn7d

dialy_forecast:
name: "Прогноз"
entities:
- sensor.pws_weather_1d_metric
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_2n_metric
- sensor.pws_weather_3d_metric
- sensor.pws_weather_3n_metric
- sensor.pws_weather_4d_metric
- sensor.pws_weather_4n_metric

wunderground_card:
name: Weather
Expand Down Expand Up @@ -127,7 +148,8 @@ weather_view:
icon: mdi:weather-snowy-rainy
entities:
- group.wunderground_card
- group.darksky_card
- group.dialy_forecast
# - group.darksky_card

sysmonitor_card:
name: System Monitor
Expand Down
2 changes: 1 addition & 1 deletion light/lightify.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- platform: osramlightify
host: 192.168.111.166
host: 192.168.111.165
allow_lightify_groups: True
29 changes: 25 additions & 4 deletions packages/bastshoes.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
sensor:
- platform: pushbullet
api_key: !secret pushbullet_key
monitored_conditions:
- title
# - body
# - application_name
# - notification_id
# - notification_tag
# - package_name
# - receiver_email
# - sender_email
# - source_device_iden
# - type

- platform: mqtt
state_topic: "zanzito/RedmiNote3/battery_level"
state_topic: "demandingdachshund/location/redminote3"
name: "RedmiNote3 indoor location"
value_template: "{{ value_json.location }}"
expire_after: 1800

- platform: mqtt
state_topic: "zanzito/redminote3/battery_level"
name: "RedmiNote3 Battery"
unit_of_measurement: "%"
qos: 0
Expand Down Expand Up @@ -37,13 +57,14 @@ sensor:
friendly_name: 'Meizu Battery'
unit_of_measurement: '%'
entity_id: device_tracker.bastshoes_meizupro5
value_template: "{{ (states.device_tracker.bastshoes_meizupro5.attributes | default).battery | default | int('unknown') }}"
# value_template: "{{ (states.device_tracker.bastshoes_meizupro5.attributes | default).battery | default | int('unknown') }}"
value_template: "{{ states('sensor.meizu_battery') | default | int('unknown') }}"
icon_template: >-
{% set battery_level = states('sensor.meizu_battery')|int('unknown') %}
{% set battery_round = (battery_level|int / 10)|int * 10 %}
{% if battery_level == 'unknown' %}
mdi:battery-unknown
{% else %}
{% set battery_round = (battery_level|int / 10)|int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
Expand Down Expand Up @@ -165,7 +186,7 @@ input_select:
binary_sensor:
- platform: mqtt
name: "RedmiNote3 status"
state_topic: "zanzito/RedmiNote3/status"
state_topic: "zanzito/redminote3/status"
payload_on: "1"
payload_off: "0"
sensor_calss: connectivity
Expand Down
110 changes: 110 additions & 0 deletions packages/smarthood.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
homeassistant:
customize:
binary_sensor.smarthood_status:
friendly_name: "Status"
icon: mdi:check-circle
sensor.smarthood_temperature:
friendly_name: "Temperature"
sensor.smarthood_humidity:
friendly_name: "Humidity"
icon: mdi:water-percent
sensor.smarthood_illumination:
friendly_name: "Illumination"
icon: mdi:weather-sunny
light.undercabinet_light:
friendly_name: "Cabinet light"
light.fan_light:
friendly_name: "Hood light"
fan.smarthood_fan:
friendly_name: "Fan"

binary_sensor:
- platform: mqtt
state_topic: "smarthood/status"
qos: 0
name: "smarthood status"
payload_on: "1"
payload_off: "0"
device_class: connectivity

sensor:
- platform: mqtt
state_topic: "smarthood/temperature"
name: "smarthood temperature"
unit_of_measurement: '°C'
expire_after: 90

- platform: mqtt
state_topic: "smarthood/humidity"
name: "smarthood humidity"
unit_of_measurement: '%'
expire_after: 90

- platform: mqtt
state_topic: "smarthood/illumination"
name: "smarthood illumination"
unit_of_measurement: 'lx'
expire_after: 90

light:
- platform: mqtt
command_topic: "smarthood/cablight/set"
state_topic: "smarthood/cablight"
payload_off: "0"
payload_on: "1"
name: "undercabinet light"

- platform: mqtt
command_topic: "smarthood/fanlight/set"
state_topic: "smarthood/fanlight"
payload_off: "0"
payload_on: "1"
name: "fan light"

fan:
- platform: mqtt
name: "smarthood fan"
state_topic: "smarthood/fan"
command_topic: "smarthood/fan/set"
payload_on: "1"
payload_off: "0"
speed_state_topic: "smarthood/fan/speed"
speed_command_topic: "smarthood/fan/speed/set"
payload_low_speed: "1"
payload_medium_speed: "2"
payload_high_speed: "3"
speeds:
- low
- medium
- high
retain: true
qos: 0

group:
kitchen_climate_card:
name: "Kitchen climate"
entities:
- binary_sensor.smarthood_status
- sensor.smarthood_temperature
- sensor.smarthood_humidity
- sensor.smarthood_illumination

kitchen_light_card:
name: "Kitchen lights"
entities:
- light.undercabinet_light
- light.fan_light

kitchen_fan_card:
name: "Kitchen hood"
entities:
- fan.smarthood_fan

smart_hood_view:
view: yes
name: SmartHood
icon: mdi:rice
entities:
- group.kitchen_climate_card
- group.kitchen_light_card
- group.kitchen_fan_card
Loading

0 comments on commit 02f3f16

Please sign in to comment.