1
0

Add xiaomi cloud extractor

This commit is contained in:
Przemek Grondek 2021-08-23 19:53:52 +02:00
parent 643d57c910
commit b4eafb9fbd

View File

@ -55,6 +55,14 @@ zoneminder:
path: /zm/
camera:
- platform: zoneminder
- 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
influxdb:
host: 192.168.50.100
@ -568,5 +576,16 @@ template:
device_class: energy
state: >
{{ states('sensor.washing_machine_energy_total') }}
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 %}
{% set power = power + states('sensor.washing_machine_kWh') | float %}
{{ power }}
attributes:
last_reset: '1970-01-01T00:00:00+00:00'