Open pergolafabio opened 1 month ago
This addon does not provide any intergration, it allows OpenHAB to be installed as an AddOn to HA. When I was using it, I did the integration over HomeKit but I was exposing OpenHAB to HA. I guess the other way around is possible using the same technique.
yeah, i'm aware :-)
i"m going to use this intergtation, to expose the entities to MQTT, then using some "binding" to use the mqtt entities
Hey @fdebrus , finally started with OH, what about backup ?
i see indeed those 2 folders, what if i setup a new instance? how can i restore the full config? do i need to copy/paste them over? any idea?
i was reading about openhab, the files created manually, its as easy as copy them back with copy/paste but what about the items created in UI itself? there should be an docker "openhab-cli" , is that included in your addon? how can we do that ?
I was about to say "docker exec..." then you tried. hum, I'm no longer using this addons for months, will have to refresh memory... checking
ok
i checked for an docker-cli package for alpine
lol, i just was tyiping there asking for confirmation :-)
there is indeed no cli for docker
there is indeed a backup/restore script, i just run it:
and its indeed backup in your mounted folder:
the .zip contains just the 2 folders , so probably will work :-)
btw, can you update your repo to latest 4.x openhab ? :-)
sure thing, done, updated to 4.2.2
Tested the folder backup, it contains indeed everything:-)
Are you using this addon?
Not anymore, I was using it to link Nikobus to HA over an OpenHAB binding. It worked but then I decided to write the integration for Nikobus to have direct connection in HA. https://github.com/fdebrus/Nikobus-HA/tree/dev
So now, I'm no longer using OpenHAB
ah ok :-)
hi, do you want to implement a new debug option , maybe you can add as an option, like you did with the port to start in debug mode start.sh vs start_debug.sh
https://github.com/openhab/openhab-docker/blob/main/README.md#debug-mode
Not working, do not know why yet... openhab not starting anymore
i was trying to add a bool the config.yaml
and then:
OPENHAB_DEBUG_MODE="$(jq --raw-output '.debug_mode' $CONFIG_PATH)"
.......
# define debug mode
if [ ! -d "${OPENHAB_DEBUG_MODE}" == "false" ]; then
start_command="start.sh"
else
start_command="start_debug.sh"
fi
# Use server mode with the default command when there is no pseudo-TTY
if [ "$interactive" == "false" ] && [ "$(IFS=" "; echo "$@")" == "su-exec openhab tini -s ./${start_command}" ]; then
command=($@ server)
exec "${command[@]}"
else
exec "$@"
fi
ah, i see you were testing it too, isnt it needed to change this in the entrypoint file instead of the dockerfile?
to try, no more time today :(
# Set entrypoint to handle the debug mode
ENTRYPOINT ["/bin/sh", "-c", "if [ \"$DEBUG_MODE\" = \"true\" ]; then su-exec openhab tini -s ./start_debug.sh; else su-exec openhab tini -s ./start.sh; fi"]
# CMD could remain just as a fallback in case someone overrides the entrypoint
CMD ["su-exec", "openhab", "tini", "-s", "./start.sh"]
ok, np, i see an update on my repository, i wait to updat :)
can't make it work, not figured out why yet
java.lang.IllegalStateException: BundleContext is no longer valid org.apache.karaf.features.core_4.4.6 [19] at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:1031) at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:180) at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:120) at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:100) at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installBundle(BundleInstallSupportImpl.java:135) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installBundle(FeaturesServiceImpl.java:1145) at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:906) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)
Ah ok, np, can you roll back the update? Since I see an update now on addon store :+)
I have found an API command to enable logging, so good enough
If I update to 4.2.2.1 , will addon stil work in non-debug mode?
release 4.2.2.1 do not start openhab, it does not work stay on 4.2.2
I trusted to have erased 4.2.2.1, is it stil available for you to upgrade ?
Yeah, it's still visible in your config file :-)
Kind reminder:)
Still on vacation... will do as I return next week
Hi, i have some time now, gonna install openhab , so i can use it on my indoor tablets
How is your setup ? are you using the MQTT discovery stream integration to expose entities to Openhab?