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
+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")