I installed oh2 from scratch again. With some litle difficulties I got my digitalstrom server thing running.
The problem was to obtain the applikation token, necessary for the communication between dss-server and oh2-digitalstromserver thing.
You have to enter:
curl https://dss:8080/json/system/requestApplicationToken?applicationName=openHAB -k
The answer follows
{"result":{"applicationToken":"ad85b7d897c7bc5a4f1128eb13j78e9590f4fd932dc0688e71cf1e4ba4131a20"},"ok":true}
The blind can be moved by the UP/Down Switch or Slider
The ShadeAngle Slider can be moved, but nothing happens.
I get the following log
2016-07-26 00:31:57.723 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Jal_Kueche_W' received command 57
2016-07-26 00:31:57.728 [WARN ] [g.digitalstrom.handler.DeviceHandler] - Command sent to an unknown channel id: digitalstrom:GR:303505d7f800182000000a96:3504175fe00000000005932e:shadeAngle
I learned a lot again, but I did not reach the target.
I need a hint again.
PS: After reboot (which still is necessary on my installation to become the rollerhuters in running mode) the Astro Sun loses there values completly. I have to delete and create the astro:sun thing to get values again.
Do I have to install from scratch again? How can I check if I have got the correct versions?
Under my first entries in the log I encountered two errors. Are they critical for the system? I followed strictly the installation path of the documentation. (The only difference was: I used
sudo systemctl enable openhab2.service
instead of
sudo systemctl enable openhab2
because this was the suggestion after running
sudo apt-get install openhab2-online
)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
2016-07-26 08:32:55.774 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': null
2016-07-26 08:33:06.273 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2016-07-26 08:33:07.151 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2016-07-26 08:33:09.338 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-07-26 08:33:17.688 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2016-07-26 08:33:18.012 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': Error restarting bundles
2016-07-26 08:46:27.573 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2016-07-26 08:46:28.899 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2016-07-26 08:46:29.235 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2016-07-26 08:46:29.284 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2016-07-26 08:48:02.325 [INFO ] [smarthome.event.ExtensionEvent ] - Extension 'binding-astro' has been installed.
Also with the two errors the server is running, so I installed the astro:sun Thing.
Here every step comes online without rebooting the system.
Then I installed the digitalstrom Thing and entered my password. The installation the was running completly automaticaly, WOW. (This is a lot easiery then the other way with the Applikation token. You should mention this step in the documention more obviously)
After that I have the possibility to install my BLIND. I did that. It works, but it keeps in the status intitializing
Here I have to reboot now. This is obviously a strange behaviour.
After the reboot there were no more error entries in the log.
The Blind changes to the status online, after pressing the “STOP” button I get the Value 100%, but the astro binding has no values at all.
No, this isn’t the right one. It’s the version of the Beta3 release, apparently the installation of new Bindings in the Online version download the Bindings at the state of the release and not the newest as we thought. The right version should be 0.9.0. It’s included in the stable release (snapshot), but we can’t install the snapshot on the raspberry pi, because some index-files can’t be downloaded. We also think that the current snapshot is not usable because we get some errors.
The only idea we have is to update the Binding manually through console commands. That’s the way we did the testing of the Binding.
The console command to update the Binding is:bundle:
That should be possible through “ssh openhab@localhost -p 8101” pwd is “habopen”
This will give you access to the karaf console.
A discussion describing this can be found here.
Is the way I did it correct, or completly wrong?
I started a ssh session via putty to the raspberry pi.
There in the bash I entered[quote=“peaeater, post:28, topic:12402”]
ssh openhab@localhost -p 8101
[/quote]
Then I became asked for a password. I entered “habopen”. It didn’t work.
Then I was thinking, that I’am using the apt-get version of oh2, which is not realy new, so pwd change from karaf to habopen may be still not implemented. But with pwd karaf the same happens.
I guess you used apt-get to install the latest stable version?
Do you know that there is also an option to try the testing versions.
Info can be found here.
version based distribution names (2.0.0.b3, 2.0.0, …)
Actual I am using the testing version, which is obviously outdated
The problem for me is where do I get actual version number.
I startet looking at bintray and I think the 2.0.0 b3 is the latest.
Am I right, that you think, that when I try
echo "deb https://dl.bintray.com/openhab/apt-repo2 2.0.0.b3 main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
all the problems I encountered for now are blown away?
I tried an I got
pi@raspberrypi:~ $ echo "deb https://dl.bintray.com/openhab/apt-repo2 2.0.0.b3 main" | sudo tee -a /etc/apt/sources.list
deb https://dl.bintray.com/openhab/apt-repo2 2.0.0.b3 main
pi@raspberrypi:~ $ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
pi@raspberrypi:~ $
I changed the command to
echo "deb http://dl.bintray.com/openhab/apt-repo2 2.0.0.b3 main" | sudo tee /etc/apt/sources.list
and voila, the update and upgrade is doing something. After that I will reboot and have a look