airfresher
This commit is contained in:
@@ -50,7 +50,6 @@ switch: !include_dir_merge_list configuration/switch
|
||||
tts: !include_dir_merge_list configuration/tts
|
||||
|
||||
#one item
|
||||
influxdb: !include configuration/influxdb.yaml
|
||||
mqtt: !include configuration/mqtt/mqtt.yaml
|
||||
telegram_bot: !include configuration/bot/telegram_bot.yaml
|
||||
vacuum: !include configuration/xiaomi_aqara/vacuum.yaml
|
||||
|
||||
@@ -3,4 +3,4 @@ kitchen_light:
|
||||
control: hidden
|
||||
entities:
|
||||
- light.kitchen
|
||||
- switch.kitchen_mini_light
|
||||
#- switch.kitchen_mini_light
|
||||
@@ -4,4 +4,5 @@
|
||||
entities:
|
||||
- sensor.temperature_158d00012d9ad7
|
||||
- sensor.humidity_158d00012d9ad7
|
||||
- light.bath
|
||||
- light.bath
|
||||
- sensor.airfresher_remain
|
||||
@@ -1,12 +0,0 @@
|
||||
host: !secret base_localname
|
||||
port: 8086
|
||||
database: hass
|
||||
max_retries: 3
|
||||
default_measurement: state
|
||||
|
||||
include:
|
||||
domains:
|
||||
- sensor
|
||||
- binary_sensor
|
||||
- switch
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#################################################
|
||||
# AirFresher #
|
||||
#################################################
|
||||
- platform: mqtt
|
||||
state_topic: 'home/airfresher/airfresher/remain'
|
||||
name: 'airfresher_remain'
|
||||
# value_template: '{{ (value | float ) / 1000 }}'
|
||||
unit_of_measurement: 'times'
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
airfresher_remain_percent:
|
||||
value_template: "{{ ((100 / 1400) * (states('sensor.airfresher_remain') | int )) | round(2) }}"
|
||||
@@ -1,4 +0,0 @@
|
||||
# - platform: template
|
||||
# sensors:
|
||||
# lux_outside:
|
||||
# value_template: '{{0}}'
|
||||
@@ -2,7 +2,7 @@
|
||||
sensors:
|
||||
power_main_total:
|
||||
unit_of_measurement: 'kWh'
|
||||
value_template: "{{ states('sensor.power_total') | float + 4733.6 | round(2) }}"
|
||||
value_template: "{{ (states('sensor.power_total') | float + 4733.6) | round(2) }}"
|
||||
#4733.6 - разница показаний.
|
||||
|
||||
- platform: modbus
|
||||
|
||||
Reference in New Issue
Block a user