openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

[Area Triggers and Actions] name light_action hard coded in area_triggers.py #307

Closed besynnerlig closed 3 years ago

besynnerlig commented 4 years ago

Descrption of the bug The function name light_action function has been hard coded in the area_trigger.py as

                        if not action_function_names or "light_action" in action_function_names:
                            start_action(item, True if event is not None else trigger_group.state in [ON, OPEN], "light_action")

The following modified code works better for me:

                        if not action_function_names or area_triggers_and_actions_dict["default_action_function"] in action_function_names:
                            start_action(item, True if event is not None else trigger_group.state in [ON, OPEN], area_triggers_and_actions_dict["default_action_function"])

The issue was originally discussed as here.

5iver commented 3 years ago

Resolved in #375