This commit is contained in:
David Hába 2023-10-31 10:05:18 +01:00
parent f333dd2356
commit e3e961d04d
11 changed files with 98 additions and 37 deletions

View File

@ -9,3 +9,13 @@
- service: shell_command.blue_led_off
data: {}
mode: single
- id: '1686867321964'
alias: Update Map Extractor camera
description: ''
use_blueprint:
path: PiotrMachowski/update_map_extractor.yaml
input:
vacuum: vacuum.roborock_vacuum_s5
camera: camera.xiaomi_cloud_map_extractor
mode_to_handle: two_intervals
interval_docked: 10000

View File

@ -14,18 +14,11 @@ google_assistant:
project_id: home-assistant-65612
service_account: !include home-assistant-65612-d69ecfd0f735.json
report_state: true
exposed_domains:
- switch
- light
entity_config:
switch.kitchen:
name: CUSTOM_NAME_FOR_GOOGLE_ASSISTANT
aliases:
- BRIGHT_LIGHTS
- ENTRY_LIGHTS
light.living_room:
expose: false
room: LIVING_ROOM
homeassistant:
customize: !include customize.yaml
customize_domain: !include customize_domain.yaml
customize_glob: !include customize_glob.yaml
group: !include groups.yaml
automation: !include automations.yaml
@ -34,12 +27,18 @@ scene: !include scenes.yaml
template: !include template.yaml
sensor: !include sensors.yaml
input_select: !include input_select.yaml
#var: !include var.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.88.10
logger:
default: info
logs:
custom_components.xiaomi_cloud_map_extractor: debug
# MariaDB - 30 day data
recorder:
db_url: !secret mariadb_url
@ -75,7 +74,7 @@ light:
camera:
- platform: xiaomi_cloud_map_extractor
host: 192.168.88.22
host: !secret xiaomi_vacuum_host
token: !secret xiaomi_vacuum_token
username: !secret xiaomi_cloud_username
password: !secret xiaomi_cloud_password
@ -90,3 +89,9 @@ camera:
bottom: 20
left: 20
right: 20
scan_interval:
seconds: 300
auto_update: false
store_map_raw: true
store_map_image: true
store_map_path: "/tmp"

0
customize.yaml Normal file
View File

9
customize_domain.yaml Normal file
View File

@ -0,0 +1,9 @@
# Klimatizace
climate:
# hvac_modes: auto, cool, dry, fan_only, heat, off
hvac_modes:
- heat
- cool
- dry
- fan_only
- "off"

0
customize_glob.yaml Normal file
View File

View File

@ -1,7 +1,7 @@
{
"node-red": {
"name": "node-red",
"version": "3.0.2",
"version": "3.1.0",
"local": false,
"user": false,
"nodes": {
@ -95,6 +95,17 @@
"module": "node-red",
"file": "/opt/node_modules/@node-red/nodes/core/common/90-comment.js"
},
"global-config": {
"name": "global-config",
"types": [
"global-config"
],
"enabled": true,
"local": false,
"user": false,
"module": "node-red",
"file": "/opt/node_modules/@node-red/nodes/core/common/91-global-config.js"
},
"unknown": {
"name": "unknown",
"types": [
@ -418,7 +429,7 @@
},
"node-red-contrib-bigtimer": {
"name": "node-red-contrib-bigtimer",
"version": "2.8.3",
"version": "2.8.5",
"local": false,
"user": false,
"nodes": {
@ -475,7 +486,7 @@
},
"node-red-contrib-home-assistant-websocket": {
"name": "node-red-contrib-home-assistant-websocket",
"version": "0.48.0",
"version": "0.57.4",
"local": false,
"user": false,
"nodes": {
@ -498,12 +509,17 @@
"ha-fire-event",
"ha-get-entities",
"api-get-history",
"ha-number",
"poll-state",
"api-render-template",
"ha-select",
"ha-sensor",
"ha-sentence",
"ha-switch",
"ha-tag",
"ha-text",
"ha-time",
"ha-time-entity",
"trigger-state",
"ha-update-config",
"ha-wait-until",
@ -561,7 +577,7 @@
},
"node-red-contrib-modbus": {
"name": "node-red-contrib-modbus",
"version": "5.25.0",
"version": "5.27.2",
"local": false,
"user": false,
"nodes": {
@ -718,12 +734,23 @@
"user": false,
"module": "node-red-contrib-modbus",
"file": "/opt/node_modules/node-red-contrib-modbus/modbus/modbus-flex-sequencer.js"
},
"Modbus-Flex-Fc": {
"name": "Modbus-Flex-Fc",
"types": [
"modbus-flex-fc"
],
"enabled": true,
"local": false,
"user": false,
"module": "node-red-contrib-modbus",
"file": "/opt/node_modules/node-red-contrib-modbus/modbus/modbus-flex-fc.js"
}
}
},
"node-red-contrib-moment": {
"name": "node-red-contrib-moment",
"version": "4.0.0",
"version": "5.0.0",
"local": false,
"user": false,
"nodes": {
@ -772,7 +799,7 @@
},
"node-red-contrib-sunevents": {
"name": "node-red-contrib-sunevents",
"version": "3.0.3",
"version": "3.1.1",
"local": false,
"user": false,
"nodes": {
@ -1068,7 +1095,7 @@
},
"node-red-node-email": {
"name": "node-red-node-email",
"version": "1.18.4",
"version": "2.0.1",
"local": false,
"user": false,
"nodes": {
@ -1146,7 +1173,7 @@
},
"node-red-node-serialport": {
"name": "node-red-node-serialport",
"version": "1.0.1",
"version": "1.0.4",
"local": false,
"user": false,
"nodes": {
@ -1187,7 +1214,7 @@
},
"node-red-node-suncalc": {
"name": "node-red-node-suncalc",
"version": "1.0.1",
"version": "1.1.0",
"local": false,
"user": false,
"nodes": {

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
# Use this file to store secrets like usernames and passwords.
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
some_password: welcome
xiaomi_vacuum_host: 192.168.88.22
xiaomi_vacuum_token: 54553270474f35576e55325450506261
xiaomi_cloud_username: habad@hotmail.cz
xiaomi_cloud_password: Maska.MiAccount

View File

@ -31,7 +31,7 @@
device_class: power_factor
state_class: measurement
# Klimatizace - aktuální teplota
# Klimatizace - aktuální teplota
- name: "AC Livingroom Current temperature"
unique_id: ac_livingroom_current_temperature
unit_of_measurement: "°C"

10
var.yaml Normal file
View File

@ -0,0 +1,10 @@
color_ac_livingroom:
initial_value: #ff9800
color_ac_bathroom:
initial_value: #3498db
color_ac_bedroom:
initial_value: #e74c3c
color_ac_childrensroom:
initial_value: #9b59b6
color_ac_guestroom:
initial_value: #f1c40f

View File

@ -1,10 +1,10 @@
'0xb4e3f9fffe102c12':
friendly_name: livingroom/mainlight_gramophone
'0x84fd27fffed7b8a4':
friendly_name: livingroom/mainlight_fireplace
'0x84fd27fffe80415b':
friendly_name: livingroom/mainlight_library
'0xb4e3f9fffe102c1f':
friendly_name: livingroom/mainlight_aquarium
'0x60a423fffefc9539':
friendly_name: livingroom/scene_switch
"0xb4e3f9fffe102c12":
friendly_name: livingroom_mainlight_gramophone
"0x84fd27fffed7b8a4":
friendly_name: livingroom_mainlight_fireplace
"0x84fd27fffe80415b":
friendly_name: livingroom_mainlight_library
"0xb4e3f9fffe102c1f":
friendly_name: livingroom_mainlight_aquarium
"0x60a423fffefc9539":
friendly_name: livingroom_scene_switch