This commit is contained in:
mischa 2019-11-02 10:30:47 +01:00
parent 1001f21734
commit fdfe2cb376
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ light_state = get_state("lights", light)
if debug: print (f"Dark: {sensor_state['dark']}, Daylight: {sensor_state['daylight']}, Light On: {sensor_state['daylight']}")
if sensor_state['dark'] and not light_state['on']:
if verbose or debug: print ("Lights ON!")
if verbose or debug: print ("Light ON!")
put_state("lights", light, "on")
if not sensor_state['dark'] and light_state['on']:
if verbose or debug: print ("Light OFF!")

View File

@ -69,7 +69,7 @@ def put_state(type, id, action):
light_state = get_state("lights", light)
if action == 'on' and not light_state['on']:
if verbose or debug: print ("Lights ON!")
if verbose or debug: print ("Light ON!")
put_state("lights", light, "on")
if action == 'off' and light_state['on']:
if verbose or debug: print ("Light OFF!")