Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automation] Rules are added twice after modifying JSR223 (Python) files #2246

Closed
cweitkamp opened this issue Mar 20, 2021 · 2 comments · Fixed by #2254
Closed

[automation] Rules are added twice after modifying JSR223 (Python) files #2246

cweitkamp opened this issue Mar 20, 2021 · 2 comments · Fixed by #2254
Labels
automation bug An unexpected problem or unintended behavior of the Core

Comments

@cweitkamp
Copy link
Contributor

After modification of textual Rule files (Python) the Rules are created twice:

openhab> automation listRules | grep Energy
20     08db0ffa-a6f7-44fe-8404-42a0226f8124 Energy - Trigger for sensorTerraceEnergy changed IDLE           
182    6d24f9ae-c787-4452-b623-b82727d6063d Energy - Trigger for sensorTerracePower changed IDLE           
258    97d39ee5-b517-4377-bb37-928efb1a193c Energy - Trigger for sensorTerracePower changed IDLE           
278    abfa6e83-cf1b-4ec3-8242-7d5aefc86b13 Energy - Trigger for sensorTerraceEnergy changed IDLE 

grafik

// CC @jpg0 Do you think this could be related to #2222? I observed this issue since a few days. I am not aware ti was happening before.

@cweitkamp cweitkamp added bug An unexpected problem or unintended behavior of the Core automation labels Mar 20, 2021
@jpg0
Copy link
Contributor

jpg0 commented Mar 24, 2021

hi @cweitkamp, I just updated my system to the latest snapshot (including #2222) to take a look at this. I am seeing the same behaviour; I'll try to figure out what is causing it...

jpg0 added a commit to jpg0/openhab-core that referenced this issue Mar 24, 2021
@jpg0
Copy link
Contributor

jpg0 commented Mar 24, 2021

Found it, you're right, it was #2222. Sorry about that! PR to fix is #2254.

@cweitkamp cweitkamp linked a pull request Mar 25, 2021 that will close this issue
jpg0 added a commit to jpg0/openhab-core that referenced this issue Mar 25, 2021
jpg0 added a commit to jpg0/openhab-core that referenced this issue Mar 25, 2021
jpg0 added a commit to jpg0/openhab-core that referenced this issue Mar 25, 2021
jpg0 added a commit to jpg0/openhab-core that referenced this issue Mar 25, 2021
cweitkamp pushed a commit that referenced this issue Mar 26, 2021
- Correctly unload script before reload.

Fixes #2246

Signed-off-by: Jonathan Gilbert <[email protected]>
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this issue Jul 11, 2023
- Correctly unload script before reload.

Fixes openhab#2246

Signed-off-by: Jonathan Gilbert <[email protected]>
GitOrigin-RevId: 6961db7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants