Add xiaomi cloud extractor
This commit is contained in:
parent
643d57c910
commit
b4eafb9fbd
@ -55,6 +55,14 @@ zoneminder:
|
|||||||
path: /zm/
|
path: /zm/
|
||||||
camera:
|
camera:
|
||||||
- platform: zoneminder
|
- 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:
|
influxdb:
|
||||||
host: 192.168.50.100
|
host: 192.168.50.100
|
||||||
@ -568,5 +576,16 @@ template:
|
|||||||
device_class: energy
|
device_class: energy
|
||||||
state: >
|
state: >
|
||||||
{{ states('sensor.washing_machine_energy_total') }}
|
{{ 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:
|
attributes:
|
||||||
last_reset: '1970-01-01T00:00:00+00:00'
|
last_reset: '1970-01-01T00:00:00+00:00'
|
Loading…
Reference in New Issue
Block a user