Commit Diff


commit - 53808b4295d0dd5829a13c57d7718d92cc0d7467
commit + b4743f94c2696958ef088d468f68ddab64c1b8f9
blob - 6256f42999c8751d299c955f84a2a7493f43ddb1
blob + 93014170b06b59b69d2ae611eb3a1e911bcf9efc
--- huectl.pl
+++ huectl.pl
@@ -38,8 +38,8 @@ bridge-name    as defined in [HOME]./hue.conf or [HOME
 -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)
 -v | --verbose  
--d | --debug   JSON output
--p | --pretty  pretty JSON output (can be a lot)
+-d | --debug   raw JSON output
+-p | --pretty  pretty JSON output
 
 Command examples:
 $0 bridge1
@@ -263,7 +263,6 @@ sub daylight_trigger {
 	my $light = _get_state_for("lights", $RESOURCE_ID);
 	my $sensor = _get_state_for("sensors", $SENSOR_ID);
 	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'}) {
 		_change_state_for("lights", $RESOURCE_ID, $ACTION);
 	}