light_action throws exceptions in two cases:
1) When a lux item is configured, but the lux item returns NULL an AttributeError is thrown
2) When no "low_lux_trigger" is configured on the item or area_triggers_and_actions_dict level then a KeyError is thrown
Desired behavior:
For 1) When a lux item returns NULL, no AttributeError should be logged and the reading should be treated as if it reported a lux level below the lux threshold. A warning should be logged that the lux item reported NULL.
For 2) When no "low_lux_trigger" is configured no KeyError should be logged and low_lux_trigger should default to infinity (i.e. all lux readings would be considered to be below the threshold). If lux_item_name is configured a warning should be logged that a lux item is configured without a low_lux_trigger.
light_action throws exceptions in two cases: 1) When a lux item is configured, but the lux item returns NULL an AttributeError is thrown 2) When no "low_lux_trigger" is configured on the item or area_triggers_and_actions_dict level then a KeyError is thrown
Desired behavior: For 1) When a lux item returns NULL, no AttributeError should be logged and the reading should be treated as if it reported a lux level below the lux threshold. A warning should be logged that the lux item reported NULL. For 2) When no "low_lux_trigger" is configured no KeyError should be logged and low_lux_trigger should default to infinity (i.e. all lux readings would be considered to be below the threshold). If lux_item_name is configured a warning should be logged that a lux item is configured without a low_lux_trigger.