airfresher moved to esphome

This commit is contained in:
Your Name
2019-12-01 12:50:20 +03:00
parent 96d796b41e
commit 089ecc0858
6 changed files with 67 additions and 21 deletions
@@ -19,7 +19,7 @@ watchdog_wemos_uptime:
module: watchdog
constraint: input_boolean.watchdog_report
entities:
- sensor.uptime_airfresher
# - sensor.uptime_airfresher
- sensor.uptime_bath
- sensor.uptime_domofon
- sensor.uptime_kitchen_led
+2 -1
View File
@@ -66,4 +66,5 @@ class AirFresher(hass.Hass):
return
self.log('freshing in {}'.format(self.fresh_times))
self.call_service("mqtt/publish", topic = "home/airfresher/airfresher/fresh/set", payload = "1")
self.turn_on(self.args['entity_id'])
# self.call_service("mqtt/publish", topic = "home/airfresher/airfresher/fresh/set", payload = "1")
@@ -1,8 +1,6 @@
airfresher:
module: airfresher
class: AirFresher
# on_time: "09:00:00"
# off_time: "22:00:00"
# entity: switch.ledstrip
entity_id: switch.airfresher_fresh
global_dependencies:
- globals