2021-02-02 22:08:07 +00:00
|
|
|
# Configure a default setup of Home Assistant (frontend, api, etc)
|
|
|
|
default_config:
|
|
|
|
|
2021-08-22 19:50:38 +00:00
|
|
|
recorder:
|
|
|
|
db_url: !secret postgres_url
|
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
# Text to speech
|
|
|
|
tts:
|
|
|
|
- platform: google_translate
|
|
|
|
cache: true
|
|
|
|
base_url: http://192.168.60.100:8123
|
|
|
|
|
|
|
|
group: !include groups.yaml
|
|
|
|
automation: !include_dir_merge_list automations/
|
|
|
|
script: !include scripts.yaml
|
|
|
|
scene: !include scenes.yaml
|
|
|
|
|
|
|
|
zha:
|
|
|
|
zigpy_config:
|
|
|
|
network:
|
|
|
|
channel: 15
|
|
|
|
ota:
|
2021-04-08 10:06:40 +00:00
|
|
|
ikea_provider: true
|
2021-02-02 22:08:07 +00:00
|
|
|
ledvance_provider: true
|
|
|
|
|
|
|
|
zwave:
|
2021-06-09 13:31:37 +00:00
|
|
|
usb_path: /dev/serial/by-id/usb-0658_0200_32303230-3035-3036-3030-303030343134-if00
|
2021-02-02 22:08:07 +00:00
|
|
|
config_path: /config/open-zwave/config
|
|
|
|
network_key: !secret zwave_network_key
|
|
|
|
|
2021-04-29 21:26:10 +00:00
|
|
|
mqtt:
|
|
|
|
broker: 127.0.0.1
|
|
|
|
|
2021-06-15 07:32:51 +00:00
|
|
|
ios:
|
|
|
|
actions:
|
|
|
|
- name: door_lock
|
|
|
|
background_color: "#000000"
|
|
|
|
label:
|
|
|
|
text: "Door Lock"
|
|
|
|
color: "#000000"
|
|
|
|
icon:
|
|
|
|
icon: lock-open
|
|
|
|
color: "#ffffff"
|
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
octoprint:
|
2021-04-17 10:36:02 +00:00
|
|
|
host: prusa.lan
|
2021-02-02 22:08:07 +00:00
|
|
|
port: 5000
|
|
|
|
api_key: !secret octoprint_api_key
|
|
|
|
number_of_tools: 1
|
|
|
|
bed: true
|
|
|
|
|
2021-06-24 20:18:01 +00:00
|
|
|
zoneminder:
|
|
|
|
- host: 192.168.50.197
|
|
|
|
path_zms: cgi-bin/nph-zms
|
|
|
|
path: /zm/
|
|
|
|
camera:
|
|
|
|
- platform: zoneminder
|
2021-08-23 17:53:52 +00:00
|
|
|
- platform: xiaomi_cloud_map_extractor
|
|
|
|
host: 192.168.60.7
|
|
|
|
token: !secret xiaomi_vacuum_token
|
|
|
|
username: xiaomi@nerull7.info
|
|
|
|
password: !secret xiaomi_cloud_password
|
|
|
|
draw: [ 'all' ]
|
|
|
|
attributes:
|
|
|
|
- calibration_points
|
2021-06-24 20:18:01 +00:00
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
influxdb:
|
|
|
|
host: 192.168.50.100
|
|
|
|
port: 8086
|
|
|
|
database: home-assistant
|
|
|
|
username: home-assistant
|
|
|
|
password: !secret influxdb_password
|
|
|
|
|
|
|
|
alarm_control_panel:
|
|
|
|
- platform: manual
|
|
|
|
|
2021-04-19 10:27:01 +00:00
|
|
|
notify:
|
|
|
|
- platform: nfandroidtv
|
|
|
|
name: Shield
|
|
|
|
host: 192.168.60.18
|
|
|
|
color: black
|
|
|
|
|
2021-04-03 20:55:49 +00:00
|
|
|
media_player:
|
|
|
|
- platform: androidtv
|
|
|
|
name: nVidia Shield
|
|
|
|
device_class: androidtv
|
|
|
|
host: 192.168.60.18
|
|
|
|
adbkey: "/config/android/adbkey"
|
|
|
|
# exclude_unnamed_apps: true
|
|
|
|
apps:
|
|
|
|
com.google.android.leanbacklauncher: AndroidTV Launcher
|
|
|
|
com.netflix.ninja: Netflix
|
|
|
|
com.liskovsoft.smarttubetv.beta: SmartTube
|
|
|
|
tv.twitch.android.app: Twitch
|
|
|
|
org.mozilla.firefox: Firefox
|
|
|
|
com.tvp.vodtv.tv: TVP VOD
|
|
|
|
pl.redefine.ipla: IPLA
|
|
|
|
com.amazon.amazonvideo.livingroom: Prime Video
|
|
|
|
eu.hbogo.androidtv.production: HBO GO
|
|
|
|
state_detection_rules:
|
|
|
|
'com.netflix.ninja':
|
|
|
|
- 'media_session_state'
|
|
|
|
'com.amazon.amazonvideo.livingroom':
|
|
|
|
- 'media_session_state'
|
|
|
|
'eu.hbogo.androidtv.production':
|
|
|
|
- 'media_session_state'
|
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
spotify:
|
|
|
|
client_id: !secret spotify_client_id
|
|
|
|
client_secret: !secret spotify_client_secret
|
|
|
|
|
|
|
|
shell_command:
|
2021-04-19 10:27:29 +00:00
|
|
|
pc_poweroff: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@hulk.lan sudo /sbin/poweroff'
|
|
|
|
pc_suspend: 'ssh -i /config/.ssh/id_rsa -o UserKnownHostsFile=/config/.ssh/known_hosts home-assistant@hulk.lan sudo /usr/sbin/pm-suspend'
|
2021-02-02 22:08:07 +00:00
|
|
|
|
2021-04-10 09:45:24 +00:00
|
|
|
rest_command:
|
|
|
|
octoprint_connect:
|
|
|
|
url: 'http://192.168.50.6:5000/api/connection'
|
|
|
|
method: post
|
|
|
|
content_type: 'application/json'
|
|
|
|
headers:
|
|
|
|
X-Api-Key: !secret octoprint_api_key
|
|
|
|
payload: |
|
|
|
|
{
|
|
|
|
"command": "connect"
|
|
|
|
}
|
|
|
|
|
2021-04-19 20:48:45 +00:00
|
|
|
rest:
|
|
|
|
- scan_interval: 43200 # 12h
|
|
|
|
resource: 'https://warszawa19115.pl/harmonogramy-wywozu-odpadow?p_p_id=portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=ajaxResourceURL&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=1'
|
|
|
|
method: POST
|
|
|
|
payload: '_portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ_addressPointId=76748040'
|
|
|
|
headers:
|
|
|
|
Content-Type: 'application/x-www-form-urlencoded'
|
|
|
|
sensor:
|
|
|
|
- name: "Address"
|
|
|
|
value_template: "{{ value_json[0].adres }}"
|
|
|
|
- name: "Garbage Collection BIO"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[1].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[1].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
- name: "Garbage Collection Metal & Plastics"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[2].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[2].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
- name: "Garbage Collection Paper"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[3].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[3].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
- name: "Garbage Collection Glass"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[4].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[4].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
- name: "Garbage Collection Furniture"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[6].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[6].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
- name: "Garbage Collection Mixed"
|
|
|
|
device_class: 'timestamp'
|
|
|
|
value_template: "{{ value_json[0].harmonogramy[7].data }}"
|
|
|
|
json_attributes_path: "$.[0].harmonogramy.[7].frakcja"
|
|
|
|
json_attributes:
|
|
|
|
- id_frakcja
|
|
|
|
- kod
|
|
|
|
- nazwa
|
|
|
|
- opis
|
|
|
|
|
2021-07-18 20:04:56 +00:00
|
|
|
calendar:
|
|
|
|
- platform: caldav
|
|
|
|
url: https://cloud.grondek.pl/remote.php/dav
|
|
|
|
username: pgrondek
|
|
|
|
password: !secret nextcloud_token
|
|
|
|
custom_calendars:
|
|
|
|
- name: "Sleep"
|
|
|
|
calendar: "Automations"
|
|
|
|
search: "Sleep"
|
|
|
|
- name: "Wakeup"
|
|
|
|
calendar: "Automations"
|
|
|
|
search: "Wakeup"
|
|
|
|
- name: "Caffeine free time"
|
|
|
|
calendar: "Automations"
|
|
|
|
search: "Caffeine free"
|
2021-02-02 22:08:07 +00:00
|
|
|
|
|
|
|
ble_monitor:
|
|
|
|
# Xiaomi BT Sensors
|
|
|
|
decimals: 1
|
|
|
|
period: 60
|
|
|
|
log_spikes: False
|
|
|
|
use_median: False
|
2021-04-17 10:36:02 +00:00
|
|
|
active_scan: True
|
2021-04-19 22:41:19 +00:00
|
|
|
# hci_interface: 0
|
|
|
|
bt_interface: 'DC:A6:32:8B:7B:AD'
|
2021-02-02 22:08:07 +00:00
|
|
|
batt_entities: False
|
|
|
|
report_unknown: False
|
|
|
|
discovery: True
|
|
|
|
devices:
|
|
|
|
- name: 'Bedroom sensor'
|
|
|
|
mac: '58:2D:34:3B:67:B0'
|
|
|
|
- name: 'Filament Sensor'
|
|
|
|
mac: 'A4:C1:38:EC:AE:6B'
|
|
|
|
- name: 'Computer Cave sensor'
|
|
|
|
mac: 'A4:C1:38:05:3D:AF'
|
2021-07-15 20:12:44 +00:00
|
|
|
- name: 'Bathroom sensor'
|
2021-02-02 22:08:07 +00:00
|
|
|
mac: 'A4:C1:38:49:30:DF'
|
|
|
|
- name: 'Rack sensor'
|
|
|
|
mac: 'A4:C1:38:5E:F8:84'
|
|
|
|
- name: 'Kettle'
|
|
|
|
mac: '7C:49:EB:30:61:CE'
|
|
|
|
- name: 'Thuja Pot'
|
|
|
|
mac: 'C4:7C:8D:6C:5B:25'
|
2021-08-22 16:01:53 +00:00
|
|
|
- name: 'Thuja Pot 2'
|
|
|
|
mac: 'C4:7C:8D:6C:9F:C6'
|
|
|
|
- name: 'Thuja Pot 3'
|
|
|
|
mac: 'C4:7C:8D:6C:9F:9B'
|
2021-02-20 02:17:03 +00:00
|
|
|
- name: 'Bedroom Plant'
|
|
|
|
mac: 'C4:7C:8D:6C:59:D5'
|
2021-02-19 23:20:58 +00:00
|
|
|
- name: 'Living Room Plant'
|
|
|
|
mac: 'C4:7C:8D:6C:59:D0'
|
2021-04-17 10:36:02 +00:00
|
|
|
- name: 'Weight Scale'
|
|
|
|
mac: 'C8:47:8C:D9:6F:96'
|
2021-02-20 02:39:15 +00:00
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
sensor:
|
2021-05-04 10:39:18 +00:00
|
|
|
- platform: systemmonitor
|
|
|
|
resources:
|
|
|
|
- type: memory_use
|
|
|
|
- type: memory_free
|
|
|
|
- type: swap_use
|
|
|
|
- type: swap_free
|
|
|
|
- type: load_1m
|
|
|
|
- type: load_5m
|
|
|
|
- type: load_15m
|
|
|
|
- type: processor_use
|
|
|
|
- type: processor_temperature
|
|
|
|
- type: ipv4_address
|
|
|
|
arg: "eth0"
|
|
|
|
- type: ipv6_address
|
|
|
|
arg: "eth0"
|
|
|
|
- type: network_in
|
|
|
|
arg: "eth0"
|
|
|
|
- type: network_out
|
|
|
|
arg: "eth0"
|
|
|
|
- type: throughput_network_in
|
|
|
|
arg: "eth0"
|
|
|
|
- type: throughput_network_out
|
|
|
|
arg: "eth0"
|
|
|
|
- type: packets_in
|
|
|
|
arg: "eth0"
|
|
|
|
- type: packets_out
|
|
|
|
arg: "eth0"
|
|
|
|
|
2021-04-10 09:26:59 +00:00
|
|
|
# Living Room
|
2021-02-02 22:08:07 +00:00
|
|
|
- platform: template
|
|
|
|
sensors:
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_temp:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Temperature"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ state_attr('fan.living_room_air_purifier', 'temperature') }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
unit_of_measurement: "°C"
|
|
|
|
device_class: "temperature"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_humidity:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Humidity"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ state_attr('fan.living_room_air_purifier', 'humidity') }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
unit_of_measurement: "%"
|
|
|
|
device_class: "humidity"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_air_quality_pm25:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Air quality"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ state_attr('fan.living_room_air_purifier', 'aqi') }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
unit_of_measurement: "μg/m³"
|
|
|
|
icon_template: "mdi:weather-fog"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_speed:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Fan speed"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ state_attr('fan.living_room_air_purifier', 'motor_speed') }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
unit_of_measurement: "rpm"
|
|
|
|
icon_template: "mdi:speedometer"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_filter_remaining:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Filter remaining"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ state_attr('fan.living_room_air_purifier', 'filter_life_remaining') }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
unit_of_measurement: "%"
|
|
|
|
icon_template: "mdi:heart-outline"
|
2021-04-10 09:26:59 +00:00
|
|
|
# Bedroom
|
2021-02-02 22:08:07 +00:00
|
|
|
- platform: template
|
|
|
|
sensors:
|
|
|
|
bedroom_air_purifier_temp:
|
|
|
|
friendly_name: "Temperature"
|
|
|
|
value_template: "{{ state_attr('fan.bedroom_air_purifier', 'temperature') }}"
|
|
|
|
unit_of_measurement: "°C"
|
|
|
|
device_class: "temperature"
|
|
|
|
bedroom_air_purifier_humidity:
|
|
|
|
friendly_name: "Humidity"
|
|
|
|
value_template: "{{ state_attr('fan.bedroom_air_purifier', 'humidity') }}"
|
|
|
|
unit_of_measurement: "%"
|
|
|
|
device_class: "humidity"
|
|
|
|
bedroom_air_purifier_air_quality_pm25:
|
|
|
|
friendly_name: "Air quality"
|
|
|
|
value_template: "{{ state_attr('fan.bedroom_air_purifier', 'aqi') }}"
|
|
|
|
unit_of_measurement: "μg/m³"
|
|
|
|
icon_template: "mdi:weather-fog"
|
|
|
|
bedroom_air_purifier_speed:
|
|
|
|
friendly_name: "Fan speed"
|
|
|
|
value_template: "{{ state_attr('fan.bedroom_air_purifier', 'motor_speed') }}"
|
|
|
|
unit_of_measurement: "rpm"
|
|
|
|
icon_template: "mdi:speedometer"
|
|
|
|
bedroom_air_purifier_filter_remaining:
|
|
|
|
friendly_name: "Filter remaining"
|
|
|
|
value_template: "{{ state_attr('fan.bedroom_air_purifier', 'filter_life_remaining') }}"
|
|
|
|
unit_of_measurement: "%"
|
|
|
|
icon_template: "mdi:heart-outline"
|
|
|
|
# IMAP
|
|
|
|
- name: imap-notifications
|
|
|
|
platform: imap
|
|
|
|
server: imap.gmail.com
|
|
|
|
port: 993
|
|
|
|
username: 'home-assistant@nerull7.info'
|
|
|
|
password: !secret imap_password
|
2021-08-22 17:52:06 +00:00
|
|
|
# Power
|
|
|
|
- platform: integration
|
|
|
|
name: "Washing machine energy Total"
|
|
|
|
unit_prefix: k
|
|
|
|
unit_time: h
|
|
|
|
source: sensor.washing_machine_electrical_measurement
|
2021-02-02 22:08:07 +00:00
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- name: Desktop
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.21
|
|
|
|
- name: Bender
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.3
|
|
|
|
- name: prusa
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.8
|
|
|
|
- name: node-master
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.100
|
|
|
|
- name: node-01
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.101
|
|
|
|
- name: node-02
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.102
|
|
|
|
- name: node-03
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.103
|
|
|
|
- name: luxoft
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.50.207
|
|
|
|
- name: smartthings
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.2
|
|
|
|
- name: hue-lights
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.3
|
|
|
|
- name: airpurifier-bedroom
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.5
|
|
|
|
- name: airpurifier-livingroom
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.6
|
|
|
|
- name: vacuum
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.7
|
|
|
|
- name: soundbar
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.8
|
|
|
|
- name: gree-ac
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.13
|
|
|
|
- name: tv
|
|
|
|
platform: ping
|
|
|
|
host: 192.168.60.14
|
|
|
|
|
2021-04-29 15:03:40 +00:00
|
|
|
http:
|
|
|
|
use_x_forwarded_for: true
|
|
|
|
trusted_proxies:
|
|
|
|
- 192.168.50.100
|
|
|
|
- 192.168.50.101
|
|
|
|
- 192.168.50.102
|
|
|
|
- 192.168.50.103
|
|
|
|
ip_ban_enabled: true
|
|
|
|
login_attempts_threshold: 5
|
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
switch:
|
2021-06-24 20:18:01 +00:00
|
|
|
- platform: zoneminder
|
|
|
|
command_on: Modect
|
|
|
|
command_off: Monitor
|
2021-04-10 09:26:59 +00:00
|
|
|
# Living Room
|
2021-02-02 22:08:07 +00:00
|
|
|
- platform: template
|
|
|
|
switches:
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_led:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "LED"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ is_state_attr('fan.living_room_air_purifier', 'led', true) }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_led_on
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_led_off
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
icon_template: "mdi:lightbulb-outline"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_child_lock:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Child lock"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ is_state_attr('fan.living_room_air_purifier', 'child_lock', true) }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_child_lock_on
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_child_lock_off
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
icon_template: "mdi:lock-outline"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_buzzer:
|
2021-02-02 22:08:07 +00:00
|
|
|
friendly_name: "Buzzer"
|
2021-04-10 09:26:59 +00:00
|
|
|
value_template: "{{ is_state_attr('fan.living_room_air_purifier', 'buzzer', true) }}"
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_buzzer_on
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_buzzer_off
|
|
|
|
data:
|
2021-04-10 09:26:59 +00:00
|
|
|
entity_id: fan.living_room_air_purifier
|
2021-02-02 22:08:07 +00:00
|
|
|
icon_template: "mdi:volume-high"
|
2021-04-10 09:26:59 +00:00
|
|
|
# Bedroom
|
2021-02-02 22:08:07 +00:00
|
|
|
- platform: template
|
|
|
|
switches:
|
|
|
|
bedroom_air_purifier_led:
|
|
|
|
friendly_name: "LED"
|
|
|
|
value_template: "{{ is_state_attr('fan.bedroom_air_purifier', 'led', true) }}"
|
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_led_on
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_led_off
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
icon_template: "mdi:lightbulb-outline"
|
|
|
|
bedroom_air_purifier_child_lock:
|
|
|
|
friendly_name: "Child lock"
|
|
|
|
value_template: "{{ is_state_attr('fan.bedroom_air_purifier', 'child_lock', true) }}"
|
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_child_lock_on
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_child_lock_off
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
icon_template: "mdi:lock-outline"
|
|
|
|
bedroom_air_purifier_buzzer:
|
|
|
|
friendly_name: "Buzzer"
|
|
|
|
value_template: "{{ is_state_attr('fan.bedroom_air_purifier', 'buzzer', true) }}"
|
|
|
|
turn_on:
|
|
|
|
service: xiaomi_miio.fan_set_buzzer_on
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
turn_off:
|
|
|
|
service: xiaomi_miio.fan_set_buzzer_off
|
|
|
|
data:
|
|
|
|
entity_id: fan.bedroom_air_purifier
|
|
|
|
icon_template: "mdi:volume-high"
|
2021-04-10 09:26:59 +00:00
|
|
|
# Wake On LAN
|
2021-02-15 00:01:13 +00:00
|
|
|
- platform: wake_on_lan
|
|
|
|
name: hulk
|
|
|
|
mac: '24:4b:fe:05:e2:8b'
|
|
|
|
|
2021-05-31 21:34:16 +00:00
|
|
|
cover:
|
|
|
|
- platform: group
|
|
|
|
name: Bedroom Blinds
|
|
|
|
entities:
|
|
|
|
- cover.bedroom_blind_left
|
|
|
|
- cover.bedroom_blind_right
|
|
|
|
- platform: group
|
|
|
|
name: Computer Cave Blinds
|
|
|
|
entities:
|
|
|
|
- cover.computer_cave_blind_left
|
|
|
|
- cover.computer_cave_blind_right
|
|
|
|
|
2021-02-02 22:08:07 +00:00
|
|
|
input_select:
|
2021-04-10 09:26:59 +00:00
|
|
|
# Living Room
|
|
|
|
living_room_air_purifier_mode:
|
2021-02-02 22:08:07 +00:00
|
|
|
name: Mode
|
|
|
|
options:
|
|
|
|
- Auto
|
|
|
|
- Silent
|
|
|
|
- Favorite
|
2021-02-20 02:17:03 +00:00
|
|
|
- Fan
|
2021-02-02 22:08:07 +00:00
|
|
|
icon: "mdi:animation-outline"
|
2021-04-10 09:26:59 +00:00
|
|
|
# Bedroom
|
2021-02-02 22:08:07 +00:00
|
|
|
bedroom_air_purifier_mode:
|
|
|
|
name: Mode
|
|
|
|
options:
|
|
|
|
- Auto
|
|
|
|
- Silent
|
|
|
|
- Favorite
|
2021-02-20 02:17:03 +00:00
|
|
|
- Fan
|
2021-02-02 22:08:07 +00:00
|
|
|
icon: "mdi:animation-outline"
|
|
|
|
home_mode:
|
|
|
|
name: Home mode
|
|
|
|
options:
|
|
|
|
- Day
|
|
|
|
- Night
|
|
|
|
- Party
|
|
|
|
- Away
|
|
|
|
icon: "mdi:home"
|
|
|
|
|
|
|
|
input_number:
|
2021-04-10 09:26:59 +00:00
|
|
|
# Living Room
|
|
|
|
living_room_air_purifier_favorite_level:
|
2021-02-02 22:08:07 +00:00
|
|
|
name: "Favorite level"
|
|
|
|
initial: 0
|
|
|
|
min: 0
|
|
|
|
max: 14
|
|
|
|
step: 1
|
|
|
|
icon: "mdi:weather-windy"
|
2021-04-10 09:26:59 +00:00
|
|
|
# Bedroom
|
2021-02-02 22:08:07 +00:00
|
|
|
bedroom_air_purifier_favorite_level:
|
|
|
|
name: "Favorite level"
|
|
|
|
initial: 0
|
|
|
|
min: 0
|
|
|
|
max: 14
|
|
|
|
step: 1
|
2021-02-20 02:17:03 +00:00
|
|
|
icon: "mdi:weather-windy"
|
2021-04-10 09:26:59 +00:00
|
|
|
living_room_air_purifier_fan_level:
|
2021-02-20 02:17:03 +00:00
|
|
|
name: "Fan level"
|
|
|
|
initial: 1
|
|
|
|
min: 1
|
|
|
|
max: 3
|
|
|
|
step: 1
|
|
|
|
icon: "mdi:weather-windy"
|
2021-08-22 16:31:28 +00:00
|
|
|
|
|
|
|
template:
|
|
|
|
- sensor:
|
2021-08-24 14:01:41 +00:00
|
|
|
- name: "3d Printer kWh"
|
2021-08-22 16:31:28 +00:00
|
|
|
unit_of_measurement: "kWh"
|
|
|
|
state_class: measurement
|
|
|
|
device_class: energy
|
|
|
|
state: >
|
|
|
|
{% set power = states('sensor.3d_printer_energy') | float %}
|
|
|
|
{% if (power > 0) %}
|
|
|
|
{{ power }}
|
|
|
|
{% else %}
|
|
|
|
{{ states('sensor.3d_printer_kWh') }}
|
|
|
|
{% endif%}
|
2021-08-22 17:52:06 +00:00
|
|
|
attributes:
|
|
|
|
last_reset: '1970-01-01T00:00:00+00:00'
|
2021-08-24 00:24:16 +00:00
|
|
|
- name: "Printer kWh"
|
|
|
|
unit_of_measurement: "kWh"
|
|
|
|
state_class: measurement
|
|
|
|
device_class: energy
|
|
|
|
state: >
|
|
|
|
{% set power = states('sensor.printer_energy') | float %}
|
|
|
|
{% if (power > 0) %}
|
|
|
|
{{ power }}
|
|
|
|
{% else %}
|
|
|
|
{{ states('sensor.printer_kWh') }}
|
|
|
|
{% endif%}
|
|
|
|
attributes:
|
|
|
|
last_reset: '1970-01-01T00:00:00+00:00'
|
2021-08-24 14:01:41 +00:00
|
|
|
- name: "Washing Machine kWh"
|
2021-08-22 17:52:06 +00:00
|
|
|
unit_of_measurement: "kWh"
|
|
|
|
state_class: measurement
|
|
|
|
device_class: energy
|
|
|
|
state: >
|
|
|
|
{{ states('sensor.washing_machine_energy_total') }}
|
2021-08-23 17:53:52 +00:00
|
|
|
attributes:
|
|
|
|
last_reset: '1970-01-01T00:00:00+00:00'
|
|
|
|
- name: "all_kWh"
|
|
|
|
unit_of_measurement: "kWh"
|
|
|
|
state_class: measurement
|
|
|
|
device_class: energy
|
|
|
|
state: >
|
|
|
|
{% set power = 0 %}
|
|
|
|
{% set power = power + states('sensor.3d_printer_kWh') | float %}
|
2021-08-24 14:01:41 +00:00
|
|
|
{% set power = power + states('sensor.printer_kWh') | float %}
|
2021-08-23 17:53:52 +00:00
|
|
|
{% set power = power + states('sensor.washing_machine_kWh') | float %}
|
|
|
|
{{ power }}
|
2021-08-22 16:31:28 +00:00
|
|
|
attributes:
|
2021-08-24 14:01:41 +00:00
|
|
|
last_reset: '1970-01-01T00:00:00+00:00'
|