remove commented python code
This commit is contained in:
parent
53808b4295
commit
b4743f94c2
@ -38,8 +38,8 @@ bridge-name as defined in [HOME]./hue.conf or [HOME]./.hue.conf or /etc/hue.c
|
|||||||
-c | --climate show temperature of sensors in C, only relevant with sensors
|
-c | --climate show temperature of sensors in C, only relevant with sensors
|
||||||
-a | --action [ on | off | state | bright | relax | morning | dimmed | evening | nightlight ] (default: state)
|
-a | --action [ on | off | state | bright | relax | morning | dimmed | evening | nightlight ] (default: state)
|
||||||
-v | --verbose
|
-v | --verbose
|
||||||
-d | --debug JSON output
|
-d | --debug raw JSON output
|
||||||
-p | --pretty pretty JSON output (can be a lot)
|
-p | --pretty pretty JSON output
|
||||||
|
|
||||||
Command examples:
|
Command examples:
|
||||||
$0 bridge1
|
$0 bridge1
|
||||||
@ -263,7 +263,6 @@ sub daylight_trigger {
|
|||||||
my $light = _get_state_for("lights", $RESOURCE_ID);
|
my $light = _get_state_for("lights", $RESOURCE_ID);
|
||||||
my $sensor = _get_state_for("sensors", $SENSOR_ID);
|
my $sensor = _get_state_for("sensors", $SENSOR_ID);
|
||||||
say "Dark: $sensor->{'dark'}, Daylight: $sensor->{'daylight'}, Light On: $light->{'on'}" if ($VERBOSE || $DEBUG);
|
say "Dark: $sensor->{'dark'}, Daylight: $sensor->{'daylight'}, Light On: $light->{'on'}" if ($VERBOSE || $DEBUG);
|
||||||
#print (f"Dark: {sensor_state['dark']}, Daylight: {sensor_state['daylight']}, Light On: {sensor_state['daylight']}")
|
|
||||||
if ($sensor->{'dark'} && ! $light->{'on'}) {
|
if ($sensor->{'dark'} && ! $light->{'on'}) {
|
||||||
_change_state_for("lights", $RESOURCE_ID, $ACTION);
|
_change_state_for("lights", $RESOURCE_ID, $ACTION);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user