updating configuration
This commit is contained in:
@@ -2,8 +2,8 @@ import appdaemon.plugins.hass.hassapi as hass
|
||||
import globals
|
||||
import datetime
|
||||
#
|
||||
# Entity timer
|
||||
# Turn on and off this entities
|
||||
# Air Fresher controller
|
||||
# Fresh the air in toilet
|
||||
#
|
||||
# Args:
|
||||
#
|
||||
@@ -29,8 +29,8 @@ class AirFresher(hass.Hass):
|
||||
if (old == "off" and new == "on"):
|
||||
self.log('Start freshing timer.')
|
||||
self.fresh_times = 0
|
||||
newtime = self.datetime()+datetime.timedelta(minutes=3)
|
||||
self.timers.append(self.run_every(self.timer_tick, newtime, 5*60))
|
||||
newtime = self.datetime()+datetime.timedelta(minutes=5)
|
||||
self.timers.append(self.run_every(self.timer_tick, newtime, 3*60))
|
||||
|
||||
def timer_tick(self, args) -> None:
|
||||
self.fresh()
|
||||
|
||||
@@ -59,3 +59,5 @@ homekit: !include configuration/homekit/homekit.yaml
|
||||
|
||||
#power meter
|
||||
modbus: !include configuration/modbus.yaml
|
||||
|
||||
mysensors: !include configuration/mysensors.yaml
|
||||
@@ -1,76 +0,0 @@
|
||||
#####################################################
|
||||
# MAINROOM #
|
||||
#####################################################
|
||||
- alias: button_living_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/mainroom/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_mainroom_click
|
||||
|
||||
- alias: button_living_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/mainroom/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_mainroom_double_click
|
||||
|
||||
#####################################################
|
||||
# BATH #
|
||||
#####################################################
|
||||
- alias: button_bath_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/bath/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_bath_click
|
||||
|
||||
- alias: button_bath_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/bath/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_bath_double_click
|
||||
|
||||
|
||||
#####################################################
|
||||
# HALL #
|
||||
#####################################################
|
||||
- alias: button_hall_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/hall/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_hall_click
|
||||
|
||||
- alias: button_hall_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/hall/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_hall_double_click
|
||||
|
||||
#####################################################
|
||||
# KITCHEN #
|
||||
#####################################################
|
||||
- alias: button_kitchen_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/kitchen/status
|
||||
payload: 'click'
|
||||
action:
|
||||
event: button_kitchen_click
|
||||
|
||||
- alias: button_kitchen_double_click
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: home/switch/kitchen/status
|
||||
payload: 'double_click'
|
||||
action:
|
||||
event: button_kitchen_double_click
|
||||
@@ -1,39 +0,0 @@
|
||||
- alias: cube_flip90
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'flip90'
|
||||
action:
|
||||
- event: cube_flip90
|
||||
|
||||
- alias: cube_flip180
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'flip180'
|
||||
action:
|
||||
- event: cube_flip180
|
||||
|
||||
- alias: cube_shake_air
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'shake_air'
|
||||
action:
|
||||
- event: cube_shake_air
|
||||
|
||||
- alias: cube_move
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'move'
|
||||
action:
|
||||
- event: cube_move
|
||||
|
||||
- alias: cube_tap_twice
|
||||
trigger:
|
||||
platform: mqtt
|
||||
topic: 'home/cube/mainroom/status'
|
||||
payload: 'tap_twice'
|
||||
action:
|
||||
- event: cube_tap_twice
|
||||
@@ -0,0 +1,4 @@
|
||||
gateways:
|
||||
- device: !secret mysensors_gateway_ip
|
||||
tcp_port: 5003
|
||||
version: '2.0'
|
||||
Binary file not shown.
@@ -9,6 +9,8 @@ base_localname: xxxxxxxxx
|
||||
modbus_host: xxxxxxxxx
|
||||
modbus_port: xxxxxxxxx
|
||||
|
||||
mysensors_gateway_ip: xxxxxxxxx
|
||||
|
||||
###################################
|
||||
# RECORDER SETTINGS #
|
||||
###################################
|
||||
|
||||
Reference in New Issue
Block a user