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

[pythonscripting][wip] initial release #18229

Open
wants to merge 165 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 163 commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
d15e57c
initial prototype
HolgerHees Dec 18, 2024
01f5c47
Working - occasional "info" is null
jsjames Dec 31, 2024
5f3378c
Merge pull request #2 from jsjames/jeff
HolgerHees Dec 31, 2024
c3c597b
Merge branch 'openhab:main' into pythonscripting
HolgerHees Dec 31, 2024
27c924f
initial prototype
HolgerHees Dec 18, 2024
dd26a4c
Working - occasional "info" is null
jsjames Dec 31, 2024
2d59157
Merge branch 'openhab:main' into pythonscripting
HolgerHees Jan 3, 2025
874a7d2
Working version (still need verification of openhab items)
jsjames Dec 31, 2024
04297df
Merge branch 'pythonscripting' into jeff
HolgerHees Jan 6, 2025
c6753c5
Merge pull request #3 from jsjames/jeff
HolgerHees Jan 6, 2025
40f17ce
Added injection of scope hashmap
jsjames Jan 7, 2025
9588cf5
cleanups
HolgerHees Jan 7, 2025
a46486a
Merge branch 'pythonscripting' into jeff
HolgerHees Jan 7, 2025
6538a17
Merge pull request #4 from jsjames/jeff
HolgerHees Jan 7, 2025
1d9b0fa
Added direct putMember in the GraalPythonBindings put method
jsjames Jan 8, 2025
45329b4
Merge pull request #5 from jsjames/pythonscripting
HolgerHees Jan 8, 2025
d6ffa0b
fix tiny maven code style warnings
HolgerHees Jan 8, 2025
7b91575
cleanups
HolgerHees Jan 8, 2025
424791f
add new scripttype 'py3' to be able to run in parallel with jythonscr…
HolgerHees Jan 9, 2025
5e1b0ab
add helper lib documentation
HolgerHees Jan 9, 2025
34cc4c2
fix pythonscripting documentation
HolgerHees Jan 9, 2025
467e716
fix pythonscripting documentation
HolgerHees Jan 9, 2025
48c35e9
fix pythonscripting documentation
HolgerHees Jan 9, 2025
02509e8
fix README.md
HolgerHees Jan 9, 2025
58ecde7
Eliminate creating a default engine in GraalPythonScriptEngineFactory…
jsjames Jan 9, 2025
62c23eb
Merge pull request #6 from jsjames/pythonscripting
HolgerHees Jan 9, 2025
328c7b0
added helper lib deployment
HolgerHees Jan 9, 2025
31ae3c8
merge
HolgerHees Jan 9, 2025
202b9c3
updated README.md
HolgerHees Jan 9, 2025
8bb059a
refactored python api and type conversion
HolgerHees Jan 10, 2025
4691d67
cleanups
HolgerHees Jan 10, 2025
bba0354
fix initial startup without existing folders
HolgerHees Jan 10, 2025
3bec387
make deployment of helper modules configureable
HolgerHees Jan 11, 2025
22a9b95
add python module caching
HolgerHees Jan 11, 2025
d567944
improved readme
HolgerHees Jan 11, 2025
f995b7f
refactored helper api
HolgerHees Jan 12, 2025
4532674
refactored trigger api
HolgerHees Jan 12, 2025
cb6ac7c
remove Schedule tag
HolgerHees Jan 12, 2025
d919817
improved persistance, semantic and documentation
HolgerHees Jan 12, 2025
1cf4c93
improved documentation
HolgerHees Jan 12, 2025
d8aac1c
add getStableMinMaxState and getStableState
HolgerHees Jan 12, 2025
5b054e7
implement dependency watcher
HolgerHees Jan 13, 2025
3e52a43
fix doc
HolgerHees Jan 13, 2025
d8d05d2
fix doc
HolgerHees Jan 13, 2025
92de775
fix doc
HolgerHees Jan 13, 2025
8de352f
updated helper lib
HolgerHees Jan 13, 2025
fb1c074
minor helper fix and readme update
HolgerHees Jan 13, 2025
c2c9a2d
fix missing timezone in helper api
HolgerHees Jan 13, 2025
676a976
improved documentation
HolgerHees Jan 13, 2025
0fcbd4e
improved documentation
HolgerHees Jan 13, 2025
4a5140e
improved documentation
HolgerHees Jan 13, 2025
1b0b6c7
improved documentation
HolgerHees Jan 13, 2025
83fb415
add description parameter to rule in helper api
HolgerHees Jan 13, 2025
987a91a
add description parameter to rule in helper api
HolgerHees Jan 13, 2025
c4482eb
add description parameter to rule in helper api
HolgerHees Jan 13, 2025
733f742
tiny refactoring of rule object in helper api
HolgerHees Jan 13, 2025
ebae581
cleanups and small fixes
HolgerHees Jan 14, 2025
b4ba835
various helper lib fixes
HolgerHees Jan 14, 2025
34101cf
add metadata support to helper api
HolgerHees Jan 14, 2025
9457da2
change doc
HolgerHees Jan 14, 2025
e9a8f91
smaller fixes and improvements
HolgerHees Jan 16, 2025
cb4d302
added todo
HolgerHees Jan 18, 2025
3bd6a97
redirect python stdout and stderr to log4j
HolgerHees Jan 18, 2025
135e527
cleanups
HolgerHees Jan 19, 2025
f654bd5
cleanups
HolgerHees Jan 19, 2025
9e464e2
improved script error handling
HolgerHees Jan 19, 2025
ab42338
cleanups
HolgerHees Jan 19, 2025
8690058
Merge branch 'openhab:main' into pythonscripting
HolgerHees Jan 19, 2025
ab17e1d
cleanup and code style fixes
HolgerHees Jan 19, 2025
0c1c418
fix trigger building with command and state objects instead of string…
HolgerHees Jan 20, 2025
0e11fe3
improved stderr and stdout logging
HolgerHees Jan 20, 2025
b594816
minor file watcher optimisation
HolgerHees Jan 22, 2025
ebd8a23
typo fix in TODO.md
HolgerHees Jan 22, 2025
2970674
fix script factory mimetype, to be meaningful in webui
HolgerHees Jan 22, 2025
165fcfc
added @when and @onlyif decorators plus minor bugfixes
HolgerHees Jan 23, 2025
b02aa41
fix readme
HolgerHees Jan 23, 2025
927a66c
changed TODO and CODEOWNER
HolgerHees Jan 23, 2025
621d933
README and CODEOWNERS change
HolgerHees Jan 23, 2025
c46512a
changed README
HolgerHees Jan 23, 2025
046ca1d
changed README
HolgerHees Jan 23, 2025
08bc6b2
changed README
HolgerHees Jan 23, 2025
7bcd264
refactored and cleaned GraalPythonBindings
HolgerHees Jan 24, 2025
0329ab2
cleanup GraalPythonBindings
HolgerHees Jan 24, 2025
6b3b796
Updated triggers
jsjames Jan 26, 2025
58ba7d9
Merge pull request #8 from jsjames/trigger_jj
HolgerHees Jan 26, 2025
84cd8f5
minor python trigger related fixes
HolgerHees Jan 26, 2025
df35590
minor python condition related fixes
HolgerHees Jan 26, 2025
16ed5a3
Merge branch 'openhab:main' into pythonscripting
HolgerHees Jan 26, 2025
e460e48
added function support for rule decorator
HolgerHees Jan 26, 2025
dc79cdd
minor rule cleanup
HolgerHees Jan 26, 2025
15cb200
another minor rule cleanup
HolgerHees Jan 26, 2025
e2e424b
remove '_' prefix from variables in rule decorator and some simplific…
HolgerHees Jan 26, 2025
53ef90f
updated README.md
HolgerHees Jan 26, 2025
6fe1cae
updated README.md
HolgerHees Jan 26, 2025
4b83d96
updated README.md
HolgerHees Jan 26, 2025
d726fd6
updated README.md
HolgerHees Jan 26, 2025
91e64e8
updated README.md
HolgerHees Jan 26, 2025
d06c969
updated README.md
HolgerHees Jan 26, 2025
5dd88a2
updated README.md
HolgerHees Jan 26, 2025
850b71d
updated README.md
HolgerHees Jan 26, 2025
453737e
fixed error in ChannelEventTrigger
jsjames Jan 26, 2025
6e43a95
Merge pull request #9 from jsjames/patch-1
HolgerHees Jan 27, 2025
1324bf2
add script path to PYTHON_PATH to allow local imports
HolgerHees Jan 27, 2025
627d794
Merge branch 'pythonscripting' of https://github.com/HolgerHees/openh…
HolgerHees Jan 27, 2025
2ec8462
increase helper lib version
HolgerHees Jan 27, 2025
c09fe1e
fix README
HolgerHees Jan 27, 2025
60f73a4
Fixed "Run Now" - UI in 4.3+ requires action configuration to denote …
jsjames Feb 2, 2025
a86a818
Merge pull request #10 from jsjames/pythonscripting
HolgerHees Feb 2, 2025
3fe09bc
Merge branch 'openhab:main' into pythonscripting
HolgerHees Feb 2, 2025
e517afe
remove empty lines
HolgerHees Feb 2, 2025
59b0c54
increase helper lib version number
HolgerHees Feb 2, 2025
9b23e63
Added setItemMetadata function
jsjames Feb 2, 2025
cd7372f
Merge pull request #11 from jsjames/pythonscripting
HolgerHees Feb 3, 2025
9c406f5
updated readme and helper lib cleanups and improvements
HolgerHees Feb 3, 2025
9d55d64
updated readme
HolgerHees Feb 3, 2025
f5f76d0
updated readme
HolgerHees Feb 3, 2025
d8157ca
updated readme
HolgerHees Feb 3, 2025
500f974
updated readme
HolgerHees Feb 3, 2025
4fee2fb
updated readme
HolgerHees Feb 3, 2025
e90bcfa
fixed postUpdate, postUpdateIfDifferent, sendCommand and sendCommandI…
HolgerHees Feb 3, 2025
f792ccb
first part of fixing non closed graal context
HolgerHees Feb 4, 2025
6b8769a
tiny change related to my previous commit
HolgerHees Feb 4, 2025
44ead40
improved debug logs
HolgerHees Feb 4, 2025
6a42d73
add custom lifecycle tracker
HolgerHees Feb 4, 2025
adf9cd3
fix missing scriptBundle
HolgerHees Feb 4, 2025
83d7665
add missing bundle to pom.xml
HolgerHees Feb 4, 2025
47fe44e
code simplifications
HolgerHees Feb 4, 2025
fca7fb9
GraalPythonBindings simplifications
HolgerHees Feb 5, 2025
82a81d5
minor log prefix fixes
HolgerHees Feb 5, 2025
8de016b
add missing dependency in /bom/openhab-addons/pom.xml
HolgerHees Feb 5, 2025
aae66ad
code cleanups and simplifications
HolgerHees Feb 6, 2025
6bd6420
add 'PY3' as language type, used in transformation service
HolgerHees Feb 6, 2025
da46ba5
Merge branch 'openhab:main' into pythonscripting
HolgerHees Feb 13, 2025
efd1e87
Use OSGi-ified GraalVM dependencies
HolgerHees Feb 14, 2025
56f0efe
Merge branch 'pythonscripting' of https://github.com/HolgerHees/openh…
HolgerHees Feb 14, 2025
5b1ee1f
added new IntervalCondition to HelperLibs
HolgerHees Feb 16, 2025
447022d
added new IntervalCondition to HelperLibs
HolgerHees Feb 16, 2025
fa34452
implement scope and import_wrapper
HolgerHees Feb 21, 2025
7c4cd08
seperate python code into a new repository
HolgerHees Feb 21, 2025
bb0cb8b
rename wrapper
HolgerHees Feb 21, 2025
2dd2ed1
sync readme
HolgerHees Feb 21, 2025
a586218
sync readme
HolgerHees Feb 21, 2025
d4929fb
sync readme
HolgerHees Feb 21, 2025
0a74c30
sync readme
HolgerHees Feb 21, 2025
1f6444f
sync readme
HolgerHees Feb 21, 2025
fd41235
sync readme
HolgerHees Feb 21, 2025
10a9f97
spelling fix
HolgerHees Feb 21, 2025
fc0c4dd
refactored init helper lib logic
HolgerHees Feb 23, 2025
095c190
minor naming fix
HolgerHees Feb 23, 2025
3aba893
changed README
HolgerHees Feb 23, 2025
4c07011
add auto injection for ui based scripts
HolgerHees Feb 23, 2025
2e16040
changed README
HolgerHees Feb 23, 2025
72d8bab
Merge branch 'openhab:main' into pythonscripting
HolgerHees Feb 23, 2025
b9912ec
fix format violations
HolgerHees Feb 23, 2025
ee1b759
cleanups and fixed log prefix for UI based rules
HolgerHees Feb 24, 2025
2265592
fix dependency listener for symlinks
HolgerHees Feb 24, 2025
9f3b7c9
removed hardcoded lib path
HolgerHees Feb 24, 2025
2c44ddd
fix GraalVM close for compiled scripts
HolgerHees Feb 24, 2025
710c390
code reorganisation
HolgerHees Feb 24, 2025
661e468
code reorganisation
HolgerHees Feb 24, 2025
a981835
fix symlink resolving for filewatcher
HolgerHees Feb 24, 2025
90f0a0c
implement recommendation from review and code analysis
HolgerHees Feb 25, 2025
53f0b0b
refactor and cleanup binding configuration
HolgerHees Feb 25, 2025
d07b7da
cleanup
HolgerHees Feb 25, 2025
a3cf7b3
cleanup NotNull check
HolgerHees Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/bundles/org.openhab.automation.jythonscripting/ @HolgerHees
/bundles/org.openhab.automation.pidcontroller/ @fwolter
/bundles/org.openhab.automation.pwm/ @fwolter
/bundles/org.openhab.automation.pythonscripting/ @HolgerHees
/bundles/org.openhab.binding.adorne/ @theiding
/bundles/org.openhab.binding.ahawastecollection/ @soenkekueper
/bundles/org.openhab.binding.airgradient/ @austvik
Expand Down
5 changes: 5 additions & 0 deletions bom/openhab-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
<artifactId>org.openhab.automation.pwm</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.automation.pythonscripting</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.adorne</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions bundles/org.openhab.automation.pythonscripting/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-addons
Loading