Hop til indhold

FrankGP

Members
  • Antal indlæg

    8
  • Medlem siden

  • Senest besøgt

Profile Information

  • Gender
    Male

Seneste besøgende på profilen

Blokken med seneste besøgende er deaktiveret, og bliver ikke vist til andre

FrankGP's Achievements

  1. Tak for svar - det giver god mening. Jeg har også nemmere ved at lave en funktionsblok i ihc, min Java færdigheder er ikke til at prale med. Jeg bruger ikke nogen terminal programmer, men vil da prøve det. Tak for det.
  2. FrankGP

    OpenHAB 1 og Philips HUE

    Hej Er der nogen der har erfaring med Philips HUE, hvor man styrer den fra fra ihc tryk? Jeg har lavet en dimmer i openHAB som jeg vil styre fra ihc'en, der sker bare ingenting. Virker fint fra web interface, der reguleres HUE fint. Er der nogle der har lavet en rules så HUE kan køre lige som ihc dimmer med sluk/tænd ved kort tryk og regulere op/ned ved langt tryk? Kører openHAB 1.83
  3. Jeg bruger openhab til at integrere andre ting til min ihc. Da jeg ikke er så stærk i java, bruger jeg det mest til at hente og sende data til min ihc controller. http://www.openhab.org/
  4. Hi Pali Thank you very much I am glad it was not me that was going nuts. I don't know if you are aware about it is quite easy to find the decimal numbers, if you go in to LK IHC visual and hold control down and drag the mouse down ower the input then the decimal shows up.
  5. Hi Pali I think the version I was running was a mix between 1.4 and 1.5.1 because I had synchronised my raspberry with an older version. Now I have deleted all files and synchronised it again, now it should run 1.5.1. I am still not able to send sunset time to ihc. I have just added date input to ihc function and added astro binding to openhab and sended the way you advised me, but it is still not working. I am not able to read the time and the date from ihc the way you describe, I am only able to read time or date. Thank you for a great work, sorry for bothering you with dumb questions. DateTime Sunrise_Time "Sunrise [%1$tH:%1$tM:%1$tS]" <clock> (date,SunTime1) {astro="type=SUNRISE_TIME",ihc=">0x4aa20e",ihc=">0x4a8c0d"} DateTime Sunset_Time "Sunset [%1$tH:%1$tM:%1$tS]" <clock> (date,SunTime1) {astro="type=SUNSET_TIME",ihc=">0x4a9b0e",ihc=">0x4a8b0d"} DateTime IHCtimeT "IHCtimeTænd [%1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS ] " <clock> (date,SunTime1) { ihc="4889358",ihc="4885517" } DateTime IHCtimeS "IHCtimeSluk [%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS ] " <clock> (date,SunTime1) { ihc="4891150",ihc="4885261" } <functionblock id="_0x371c28" name="fp 1.0 7 dages ur, med 1 tænd tidspunkt" master_name="fgp 1.0 7 dages ur, med 1 tænd tidspunkt" master_programmer="Frank" master_date_year="2014" master_date_month="11" master_date_day="11" locked="yes" icon="_0x10" note="2.1.01.a. 7 dages ur, med 1 tænd tidspunkt Anvendelse: 7 dages ur, hvor der kun er et tænd- og sluktidspunkt. Dvs. at alle ugens 7 dage har samme tænd- og sluktidspunkt. For at se den fulde beskrivelse marker denne linje og tryk "F1". Bemærk: Dette virker kun hvis "Blokken" er rød-markeret !"> <inputs id="_0x371d23" name="Input" icon="_0x4" note="Variablene i denne gruppering er input til funktionsblokken"> <resource_input id="_0x371e11" name="Tryk (manuel overstyring)" icon="_0x36" note="Manuelt overstyring af ur - En aktivering vil skifte udgangen. Udgang for ur vil forblive i tilstanden indtil næste urtidspunkt. (Udfyldes af installatøren)"/> <resource_time id="_0x4a8b0d" name="Tidspunkt Tænd" icon="_0x2f" hour="0" minute="0" second="0"/> <resource_time id="_0x4a8c0d" name="Tidspunkt Sluk" icon="_0x2f" hour="0" minute="0" second="0"/> <resource_date id="_0x4a9b0e" name="Dato Tidspunkt Tænd" icon="_0x29" year="2000" month="7" day="7"/> <resource_date id="_0x4aa20e" name="Dato Tidspunkt Sluk" icon="_0x29" year="2000" month="6" day="8"/> </inputs> java.lang.NumberFormatException: For input string: "0x4aa20e" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at org.openhab.binding.ihc.internal.IhcGenericBindingProvider.processBindingConfiguration(IhcGenericBindingProvider.java:102) at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:341) at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:317) 00:09:16.363 INFO o.o.b.a.i.job.JobScheduler[:101]- Deleting astro job: DayInfoJob 00:09:16.387 INFO o.o.b.a.i.job.JobScheduler[:144]- Scheduled a daily job at midnight for astro DayInfo calculation 00:09:16.404 WARN o.o.b.a.i.job.JobScheduler[:90]- Azimuth/Elevation binding available, but configuration is disabled (interval = 0)! 00:09:21.498 INFO o.o.m.c.i.ModelRepositoryImpl[:97]- Refreshing model 'fgp.items' 00:09:22.051 ERROR o.o.m.c.i.f.FolderObserver[:105]- An unexpected exception has occured java.lang.NumberFormatException: For input string: "0x4aa20e" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at org.openhab.binding.ihc.internal.IhcGenericBindingProvider.processBindingConfiguration(IhcGenericBindingProvider.java:102) at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:341) at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:317 2014-11-13 00:03:19 - Weather_TempeIHC state updated to 10.00 2014-11-13 00:03:20 - Sunrise_Time state updated to 2014-11-13T07:52:00 2014-11-13 00:03:30 - Light_GF_Kitchen_Table state updated to ON
  6. Does anyone know how to make rules to convert time so it can be send to IHC? I try to send sunset and sunrise to IHC, but openhab comes with an error, it can not convert time. I have tried two different ways, one is downloading the times from wunderground, and I found a rule that calculate the time but it doesn't work either. I don't know much about Java, so I haven't been able to figure out how to convert it or split it. DateTime SunSet "Sunset [%1$tH:%1$tM:%1$tS]" <clock> (date,SunTime1) {ihc=">4885261"} DateTime SunRise "SunRise [%1$tH:%1$tM:%1$tS]" <clock> (date,SunTime1) {ihc=">4885517"} String strSunset "strSunset [ %s ] " <clock> (date,SunTime1) { http="<[http://api.wunderground.com/api/xxxxxxxxxxxxxxxx/astronomy/q/DK/kolding.xml:600000:XSLT(wunderground_sunset.xsl)]",ihc=">4885261"} String strSunrise "strSunrise [ %s ] " <clock> (date,SunTime1) { http="<[http://api.wunderground.com/api/xxxxxxxxxxxxxxxx/astronomy/q/DK/kolding.xml:600000:XSLT(wunderground_sunrise.xsl)]",ihc=">4885517"} 2014-11-09 21:34:37 - Sunset_Time2 state updated to 4:24 pm 2014-11-09 21:35:00 - SunRise state updated to 2014-11-09T07:45:08 2014-11-09 21:35:00 - SunSet state updated to 2014-11-09T16:25:18 2014-11-09 21:35:22 - strSunrise state updated to 7:43:00 2014-11-09 21:35:28 - Sunrise_Time2 state updated to 7:39 am 2014-11-09 21:35:33 - strSunset state updated to 16:27:00 21:29:36.249 ERROR o.o.b.ihc.internal.IhcBinding[:426]- Error occured during item update java.lang.NumberFormatException: Can't convert class org.openhab.core.library.types.DateTimeType at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:416) at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:411) at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:358) at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:117) at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:38) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) 21:29:39.381 ERROR o.o.b.ihc.internal.IhcBinding[:426]- Error occured during item update java.lang.NumberFormatException: Can't convert class org.openhab.core.library.types.DateTimeType at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:416) at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:411) at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:358) at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:117) at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:38) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) 21:30:01.142 ERROR o.o.b.ihc.internal.IhcBinding[:426]- Error occured during item update java.lang.NumberFormatException: Can't convert class org.openhab.core.library.types.DateTimeType at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:416) at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:411) at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:358) at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:117) at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:38) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) 21:30:01.199 ERROR o.o.b.ihc.internal.IhcBinding[:426]- Error occured during item update java.lang.NumberFormatException: Can't convert class org.openhab.core.library.types.DateTimeType at org.openhab.binding.ihc.internal.IhcDataConverter.convertCommandToResourceValue(IhcDataConverter.java:416) at org.openhab.binding.ihc.internal.IhcBinding.updateResource(IhcBinding.java:411) at org.openhab.binding.ihc.internal.IhcBinding.internalReceiveUpdate(IhcBinding.java:358) at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:117) at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:38) at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
  7. Thank you very much for the ansver I found the solution in the picture you send. I had stored the certificate in the wrong Java version instead of JRC I had used JDK. Now it works fine.
  8. Can any one give me detailed description on how to import the certificate to Java on a win 7. I must do somthing wrong when i start openhab it comes with an security error by connecting to IHC. C:\OpenHab\openhab-runtime-1.3.1>keytool -importcert -alias ELKO -file c:\openhab\ihc.cerEnter keystore password:keytool error: java.lang.Exception: Certificate not imported, alias <ELKO> already exists C:\OpenHab\openhab-runtime-1.3.1>start.batLaunching the openHAB runtime...osgi> 23:18:51.946 INFO o.o.c.internal.CoreActivator[:92] - openHAB runtime has been started (v1.3.1).23:18:53.646 INFO o.o.i.s.i.DiscoveryServiceImpl[:92] - mDNS service has been started23:18:54.255 INFO o.o.i.r.i.RESTApplication[:158] - Started REST API at /rest23:19:02.398 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'demo.sitemap'23:19:02.523 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'demo.script'23:19:02.585 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'db4o.persist'23:19:02.601 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'exec.persist'23:19:02.601 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'logging.persist'23:19:02.601 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'rrd4j.persist'23:19:02.616 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'demo.items'23:19:04.317 INFO o.o.u.w.i.s.WebAppServlet[:99] - Started Classic UI at /openhab.app23:19:08.232 INFO o.o.b.i.internal.IhcConnection[:139] - Connecting to IHC / ELKO LS controller [iP=192.168.0.4' Username='test' Password='Test123456].23:19:08.248 INFO o.o.c.s.AbstractActiveService[:189] - HTTP Refresh Service has been started23:19:08.685 WARN o.o.b.ihc.internal.IhcBinding[:1084] - Controller is null =>resource value notfications waiting aborted!23:19:08.685 ERROR o.o.b.i.internal.IhcConnection[:188] - Connection to IHC / ELKO LS controller failed.javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source)Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(Unknown Source)Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)23:19:08.685 INFO o.o.c.s.AbstractActiveService[:189] - IHC / ELKO LS refresh and notification listener service has been started23:19:08.685 INFO o.o.c.s.AbstractActiveService[:189] - NTP Refresh Service has been started23:19:08.763 INFO runtime.busevents[:46] - Weather_Temperature state updated to 523:19:08.763 WARN o.o.b.ihc.internal.IhcBinding[:697] - IHC / ELKO LS controller is null!
×
×
  • Tilføj...

Important Information

Privatlivspolitik og We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

1200x630bb.png

ok