problem with arduino control

436 views
Skip to first unread message

mfg...@gmail.com

unread,
Jul 31, 2013, 9:23:31 AM7/31/13
to ope...@googlegroups.com
Hello everyone,

I would like to use OpenHAB with my arduino to control, well, everything, and to collect light, etc. data.
Right now I would like to write the simplest possible control for one lamp via arduino.
Unfortuantely it works only sometimes.
These are my items:

Switch small_kitchenlamp "small kitchenlamp"    

String Arduino  "Arduino"    { serial="COM15" }   

and these are my rules:

import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*


rule small_kitchenlamp_on
when
  Item small_kitchenlamp changed from OFF to ON
then
    sendCommand(Arduino, "a")
end



rule small_kitchenlamp_off
when
    Item small_kitchemlamp changed from ON to OFF
then
    sendCommand(Arduino, "b")
end

It always changes the state of the lamp but it only sometimes sends the necessary letter to the arduino usually the a for ON.

This is my sitemap just in case it is relevant:

sitemap jarvis label="Jarvis"
{
    Frame {
        Switch item=small_kitchenlamp
    }
}

If you have any advice that would be very helful.
Thanks in advance.





Thomas Eichstädt-Engelen

unread,
Jul 31, 2013, 9:32:46 AM7/31/13
to ope...@googlegroups.com
Hi,

what do you mean by "only sometimes" ?

Please start openHAB in debug mode (start_debug.xxx) and provide the relevant part of the openhab.log to start debugging. 

Regards,

Thomas E.-E.


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

mfg...@gmail.com

unread,
Jul 31, 2013, 9:52:02 AM7/31/13
to ope...@googlegroups.com
Thanks for your quick replay,

first I tried it with the Android App and then with the OpenHAB Designer Browser, because the designer tends to crash when I use at the same time with OpenHAB.
The same happend again it froze. The log says I try this for about six hours now. I just discovered OpenHAB last night, so it's gonna take some time.

But here is the log:

15:36:33.320 DEBUG o.o.b.m.i.ModbusActivator[:50]- Modbus binding has been started.
15:36:33.455 DEBUG o.o.i.d.i.DropboxActivator[:50]- Dropbox IO Bundle has been started.
15:36:33.489 DEBUG o.o.c.s.i.SchedulerActivator[:56]- Scheduler has been started.
15:36:33.543 INFO  o.q.impl.StdSchedulerFactory[:1175]- Using default implementation for ThreadExecutor
15:36:33.573 INFO  o.q.core.SchedulerSignalerImpl[:61]- Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
15:36:33.575 INFO  o.quartz.core.QuartzScheduler[:243]- Quartz Scheduler v.2.1.7 created.
15:36:33.577 INFO  org.quartz.simpl.RAMJobStore[:154]- RAMJobStore initialized.
15:36:33.579 INFO  o.quartz.core.QuartzScheduler[:268]- Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

15:36:33.585 INFO  o.q.impl.StdSchedulerFactory[:1324]- Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'
15:36:33.589 INFO  o.q.impl.StdSchedulerFactory[:1328]- Quartz scheduler version: 2.1.7
15:36:33.592 INFO  o.quartz.core.QuartzScheduler[:534]- Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
15:36:33.606 DEBUG o.o.b.r.i.RFXComActivator[:54]- RFXCOM binding has been started.
15:36:34.105 DEBUG o.o.b.r.i.RFXComConnection[:67]- Activate
15:36:34.113 DEBUG o.o.b.r.i.RFXComConnection[:88]- Configuration updated, config false
15:36:34.220 DEBUG o.o.b.k.i.KoubachiActivator[:54]- Koubachi binding has been started.
15:36:34.473 DEBUG o.o.i.r.internal.RESTActivator[:53]- REST API has been started.
15:36:34.959 DEBUG o.o.p.e.i.ExecPersistenceServiceActivator[:53]- Exec persistence bundle has been started.
15:36:34.999 DEBUG o.o.b.n.internal.NtpActivator[:51]- NTP binding has been started.
15:36:35.032 DEBUG o.o.p.s.i.SqlPersistenceServiceActivator[:52]- SQL persistence bundle has been started.
15:36:35.110 DEBUG o.o.b.k.internal.KNXActivator[:51]- KNX binding has been started.
15:36:35.123 DEBUG o.o.p.s.i.SenseActivator[:51]- Open.Sen.se persistence bundle has been started.
15:36:35.261 DEBUG o.o.b.h.i.HomematicActivator[:54]- homematic binding has been started.
15:36:35.281 DEBUG o.o.b.h.internal.HueActivator[:50]- Hue binding has been started.
15:36:35.310 DEBUG o.o.b.m.internal.MpdActivator[:51]- MPD binding has been started.
15:36:35.334 DEBUG o.o.p.l.i.LoggingPersistenceActivator[:51]- Logging persistence bundle has been started.
15:36:35.343 DEBUG o.o.b.s.i.SamsungTvActivator[:54]- Samsung TV binding has been started.
15:36:35.351 DEBUG o.o.c.core.ConfigDispatcher[:166]- Processing openHAB default configuration file 'C:\OpenHAB\configurations\openhab_default.cfg'.
15:36:36.160 DEBUG o.o.c.core.ConfigDispatcher[:188]- Processing openHAB main configuration file 'C:\OpenHAB\configurations\openhab.cfg'.
15:36:36.205 DEBUG o.o.c.internal.CoreActivator[:124]- UUID file already exists at 'C:\OpenHAB\webapps\static\uuid' with content '5ae3316e-72f5-4b9d-8df6-36861c7702cc'
15:36:36.585 DEBUG o.o.c.internal.CoreActivator[:146]- Created file 'C:\OpenHAB\webapps\static\version' with content '1.2.0'
15:36:36.593 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
15:36:37.193 DEBUG o.o.m.i.i.ItemModelActivator[:44]- Registered 'item' configuration parser
15:36:37.231 DEBUG o.o.b.a.i.AsteriskActivator[:50]- Asterisk binding has been started.
15:36:37.256 DEBUG o.o.b.p.i.PlugwiseActivator[:54]- Plugwise binding has been started.
15:36:37.273 DEBUG o.o.b.r.internal.RFXComBinding[:78]- Activate
15:36:37.298 DEBUG o.o.b.c.internal.CupsActivator[:51]- Cups binding has been started.
15:36:37.489 DEBUG o.o.b.s.i.SonosActivator[:58]- Sonos binding bundle has been started.
15:36:37.520 DEBUG o.o.b.t.internal.TCPActivator[:51]- TCP/UDP binding has been started.
15:36:37.541 DEBUG o.o.b.f.i.FritzboxActivator[:50]- Fritzbox binding has been started.
15:36:37.549 DEBUG o.o.b.n.i.HeatPumpActivator[:58]- Novelan HeatPump binding has been started.
15:36:37.574 DEBUG o.o.b.b.i.BluetoothActivator[:52]- Bluetooth binding has been started.
15:36:37.654 ERROR o.o.b.b.i.BTDeviceDiscoveryService[:237]- Error while initializing local bluetooth device.
javax.bluetooth.BluetoothStateException: BlueCove libraries not available
    at com.intel.bluetooth.BlueCoveImpl.createDetectorOnWindows(BlueCoveImpl.java:922)
    at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:460)
    at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
    at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1042)
    at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1035)
    at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
    at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
    at org.openhab.binding.bluetooth.internal.BTDeviceDiscoveryService.run(BTDeviceDiscoveryService.java:133)
15:36:37.691 DEBUG o.o.b.h.i.bus.HomematicBinding[:303]- Updating item state for items []
15:36:37.700 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:77]- Sending SSDP discover.
15:36:37.707 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:79]- Waiting for response.
15:36:37.708 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:129]- Got an answer message.
15:36:37.713 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:157]- Analyzing answer message.
15:36:37.715 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:176]- Answer did not match.
15:36:37.716 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:129]- Got an answer message.
15:36:37.735 DEBUG o.o.c.a.i.AutoUpdateActivator[:51]- AutoUpdate binding has been started.
15:36:37.780 DEBUG o.o.p.r.i.RRD4jActivator[:51]- RRD4j persistence bundle has been started.
15:36:37.937 DEBUG o.o.b.s.i.SerialActivator[:51]- Serial binding has been started.
15:36:37.950 DEBUG o.o.c.i.items.ItemRegistryImpl[:165]- Item provider 'GenericItemProvider' has been added.
15:36:38.097 DEBUG o.o.m.p.i.PersistenceModelActivator[:43]- Registered 'persistence' configuration parser
15:36:38.377 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'exec.persist' can not be found
15:36:38.384 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'sql.persist' can not be found
15:36:38.387 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'sense.persist' can not be found
15:36:38.389 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'logging.persist' can not be found
15:36:38.396 DEBUG o.o.c.t.i.TransformationActivator[:58]- Transformation Service has been started.
15:36:38.408 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'rrd4j.persist' can not be found
15:36:38.412 DEBUG o.o.b.p.i.PulseaudioActivator[:50]- Pulseaudio binding has been started.
15:36:38.456 DEBUG o.o.b.p.i.PulseaudioBinding[:113]- pulseaudio binding activated
15:36:38.549 DEBUG o.o.i.g.internal.GCalActivator[:54]- Google Calendar IO has been started.
15:36:38.558 DEBUG o.o.p.d.internal.Db4oActivator[:44]- db4o persistence bundle has been started.
15:36:38.602 DEBUG o.o.i.g.i.p.GCalPresenceSimulation[:161]- Scheduled Google Calendar Upload-Job with interval '10'
15:36:38.605 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'presencesimulation.persist' can not be found
15:36:38.932 DEBUG o.o.p.d.i.Db4oPersistenceService[:237]- Scheduled Commit-Job with interval 5sec.
15:36:38.951 DEBUG o.o.p.d.i.Db4oPersistenceService[:250]- Scheduled Backup-Job with cron expression '0 0 1 * * ?'
15:36:38.953 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'db4o.persist' can not be found
15:36:38.959 DEBUG o.o.b.n.i.NetworkHealthActivator[:51]- NetworkHealth binding has been started.
15:36:38.984 DEBUG o.o.b.h.internal.HttpActivator[:54]- HTTP binding has been started.
15:36:38.986 DEBUG o.o.i.m.i.MultimediaActivator[:54]- Multimedia I/O bundle has been started.
15:36:39.020 DEBUG o.o.b.v.internal.VDRActivator[:60]- VDR binding bundle has been started.
15:36:39.194 DEBUG o.o.i.s.i.DiscoveryServiceActivator[:47]- Discovery service has been started.
15:36:39.205 DEBUG o.o.b.c.i.ConfigAdminActivator[:51]- ConfigAdmin binding has been started.
15:36:39.203 DEBUG o.o.c.s.AbstractActiveService[:164]- VDR Monitor Service has been started
15:36:39.249 DEBUG o.o.b.vdr.internal.VDRMonitor[:104]- VDRMonitor execute called
15:36:39.270 DEBUG o.o.b.p.i.PLCBusActivator[:52]- PLCBus Binding startet
15:36:39.337 DEBUG o.o.b.e.internal.ExecActivator[:54]- Exec binding has been started.
15:36:39.718 DEBUG o.o.b.h.i.tools.SsdpDiscovery[:82]- Timeout of request...
15:36:40.284 DEBUG o.o.b.s.internal.SerialDevice[:125]- Serial port 'COM15' has been found.
15:36:40.346 DEBUG o.o.b.i.internal.IhcActivator[:54]- IHC / ELKO LS binding has been started.
15:36:40.408 DEBUG o.o.b.s.internal.SnmpActivator[:51]- SNMP binding has been started.
15:36:40.435 DEBUG o.o.p.c.internal.CosmActivator[:51]- Cosm persistence bundle has been started.
15:36:40.510 DEBUG o.o.m.s.i.SitemapModelActivator[:43]- Registered 'sitemap' configuration parser
15:36:40.557 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
15:36:40.558 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'cosm.persist' can not be found
15:36:40.585 DEBUG o.o.b.w.internal.WolActivator[:51]- WoL binding has been started.
15:36:40.697 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy db4o.everyHour with cron expression 0 0 * * * ?
15:36:40.708 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy db4o.everyDay with cron expression 0 0 0 * * ?
15:36:40.712 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
15:36:40.725 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy exec.everyMinute with cron expression 0 * * * * ?
15:36:40.726 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
15:36:40.743 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
15:36:40.754 DEBUG o.o.c.p.i.PersistenceManager[:336]- Item 'DemoSwitch' does not exist.
15:36:40.757 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
15:36:40.759 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Weather_Chart' does not exist.
15:36:40.763 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy rrd4j.everyMinute with cron expression 0 * * * * ?
15:36:40.765 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
15:36:40.914 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
15:36:40.923 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.script'
15:36:41.024 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
15:36:41.033 DEBUG o.o.b.i.internal.IhcConnection[:172]- Configuration updated, config false
15:36:41.222 INFO  o.a.cpr.AtmosphereFramework[:742]- Installing BroadcastFilter class(es) org.atmosphere.client.FormParamFilter
15:36:41.240 INFO  o.a.cpr.AtmosphereFramework[:1118]- Auto detecting atmosphere handlers /WEB-INF/classes/
15:36:41.248 WARN  o.a.cpr.AtmosphereFramework[:814]- Missing META-INF/atmosphere.xml but found the Jersey runtime. Starting Jersey
15:36:41.268 INFO  o.a.cpr.AtmosphereFramework[:364]- Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path: /*
15:36:41.269 INFO  o.a.cpr.AtmosphereFramework[:1173]- Auto detecting WebSocketHandler in /WEB-INF/classes/
15:36:41.291 INFO  o.a.cpr.AtmosphereFramework[:1099]- Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.
15:36:41.293 INFO  o.a.cpr.AtmosphereFramework[:902]- Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
15:36:41.307 INFO  o.a.h.ReflectorServletProcessor[:126]- Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer
15:36:41.415 INFO  c.s.j.s.i.a.WebApplicationImpl[:791]- Initiating Jersey application, version 'Jersey: 1.11 12/09/2011 11:05 AM'
15:36:41.424 INFO  c.s.j.s.i.a.WebApplicationImpl[:802]- Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
15:36:41.478 INFO  c.s.j.s.i.a.DeferredResourceConfig[:97]- Instantiated the Application class org.openhab.io.rest.internal.RESTApplication
15:36:42.212 INFO  o.a.cpr.AtmosphereFramework[:589]- Installed Default AtmosphereInterceptor [Android Interceptor Support, SSE Interceptor Support, JSONP Interceptor Support]. Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults in your xml to disable them.
15:36:42.222 WARN  o.a.cpr.AtmosphereFramework[:509]- No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the HeaderBroadcasterCache.
15:36:42.227 WARN  o.a.cpr.AtmosphereFramework[:533]- Neither TrackMessageSizeInterceptor or TrackMessageSizeFilter are installed. atmosphere.js may receive glued and incomplete message.
15:36:42.230 INFO  o.a.cpr.AtmosphereFramework[:537]- HttpSession supported: false
15:36:42.233 INFO  o.a.cpr.AtmosphereFramework[:538]- Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
15:36:42.235 INFO  o.a.cpr.AtmosphereFramework[:539]- Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
15:36:42.238 INFO  o.a.cpr.AtmosphereFramework[:540]- Using Broadcaster: org.atmosphere.jersey.JerseyBroadcaster
15:36:42.242 INFO  o.a.cpr.AtmosphereFramework[:541]- Atmosphere Framework 1.0.4 started.
15:36:42.244 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
15:36:42.246 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server._tcp.local. at port 8080
15:36:48.461 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server-ssl._tcp.local. at port 8443
15:36:51.246 DEBUG o.o.p.r.i.c.RRD4jChartServlet[:122]- Starting up rrd chart servlet at /rrdchart.png
15:36:51.351 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
15:36:51.917 DEBUG o.o.m.r.i.RuleModelActivator[:62]- Registered 'rules' configuration parser
15:36:51.933 DEBUG o.o.m.r.i.engine.RuleEngine[:98]- Started rule engine
15:37:00.016 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
15:37:00.019 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
15:37:00.029 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Weather_Chart' does not exist.
15:37:01.358 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.rules'
15:37:15.555 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:37:15.670 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:37:23.785 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'ON'.
15:37:24.116 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:24.132 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:24.199 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:37:33.847 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'OFF'.
15:37:34.165 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:34.179 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:34.223 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:37:41.933 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'ON'.
15:37:41.947 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlamp_on'
15:37:42.264 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:42.274 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:42.279 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'a' to serial port COM15
15:37:42.313 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:37:50.196 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'OFF'.
15:37:50.517 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:50.535 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:37:50.623 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:38:00.002 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
15:38:00.006 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
15:38:00.007 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Weather_Chart' does not exist.
15:38:22.267 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:38:31.446 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlamp_on'
15:38:31.452 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'a' to serial port COM15
15:38:31.759 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:38:31.760 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@50f8915b' is empty
15:38:31.859 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
15:38:39.251 DEBUG o.o.b.vdr.internal.VDRMonitor[:104]- VDRMonitor execute called


Thank you very much

mfg...@gmail.com

unread,
Jul 31, 2013, 9:55:06 AM7/31/13
to ope...@googlegroups.com, mfg...@gmail.com


I meant reply, I have been up all night. not my choice.

Kai Kreuzer

unread,
Jul 31, 2013, 9:57:54 AM7/31/13
to ope...@googlegroups.com
Hi,

One important advice: Please only add the bundles to your addons folder that you really require - your log looks as if you have unpacked everything, that can indeed cause problems (and makes debugging pretty hard). If you start with an almost empty "addons" folder, things will look better, promised!

Regards,
Kai


mfg...@gmail.com

unread,
Jul 31, 2013, 11:10:12 AM7/31/13
to ope...@googlegroups.com
Thanks for your advice,

this time I only used the android app and deleted all addons except the serial one. This is the relevant log:

17:01:30.215 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
17:01:31.224 ERROR o.o.b.b.i.BTDeviceDiscoveryService[:237]- Error while initializing local bluetooth device.

javax.bluetooth.BluetoothStateException: BlueCove libraries not available
    at com.intel.bluetooth.BlueCoveImpl.createDetectorOnWindows(BlueCoveImpl.java:922)
    at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:460)
    at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
    at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1042)
17:01:32.581 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
17:01:33.407 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
17:01:33.416 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
17:01:33.440 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
17:01:33.456 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
17:01:33.621 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.script'
17:01:33.714 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
17:01:33.814 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
17:01:35.028 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
17:01:44.150 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
17:02:06.453 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
17:02:08.268 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
17:02:09.417 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
17:02:09.430 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
17:02:09.444 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
17:02:09.478 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
17:02:10.473 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
17:02:11.713 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
17:02:19.591 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
17:02:19.775 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.script'
17:02:20.659 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
17:02:29.999 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.rules'
17:04:29.193 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
17:04:32.027 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
17:04:33.369 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
17:04:40.121 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
17:04:40.128 ERROR o.o.u.i.i.ItemUIRegistryImpl[:406]- Cannot retrieve item 'small_kitchenlamp' for widget org.openhab.model.sitemap.Switch
17:04:40.281 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.script'
17:04:40.282 ERROR o.o.u.i.i.ItemUIRegistryImpl[:406]- Cannot retrieve item 'small_kitchenlamp' for widget org.openhab.model.sitemap.Switch
17:04:40.282 ERROR o.o.u.i.i.ItemUIRegistryImpl[:406]- Cannot retrieve item 'small_kitchenlamp' for widget org.openhab.model.sitemap.Switch
17:04:40.294 ERROR o.o.u.i.i.ItemUIRegistryImpl[:406]- Cannot retrieve item 'small_kitchenlamp' for widget org.openhab.model.sitemap.Switch
17:04:40.408 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
17:04:40.434 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
17:04:40.450 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
17:04:40.462 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
17:04:40.725 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
17:04:42.463 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
17:04:50.922 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.rules'
17:06:44.244 DEBUG o.o.c.s.i.SchedulerActivator[:56]- Scheduler has been started.
17:06:44.293 INFO  o.q.impl.StdSchedulerFactory[:1175]- Using default implementation for ThreadExecutor
17:06:44.315 INFO  o.q.core.SchedulerSignalerImpl[:61]- Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
17:06:44.315 INFO  o.quartz.core.QuartzScheduler[:243]- Quartz Scheduler v.2.1.7 created.
17:06:44.317 INFO  org.quartz.simpl.RAMJobStore[:154]- RAMJobStore initialized.
17:06:44.319 INFO  o.quartz.core.QuartzScheduler[:268]- Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'

  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

17:06:44.319 INFO  o.q.impl.StdSchedulerFactory[:1324]- Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'
17:06:44.320 INFO  o.q.impl.StdSchedulerFactory[:1328]- Quartz scheduler version: 2.1.7
17:06:44.321 INFO  o.quartz.core.QuartzScheduler[:534]- Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
17:06:44.328 DEBUG o.o.c.core.ConfigDispatcher[:166]- Processing openHAB default configuration file 'C:\OpenHAB\configurations\openhab_default.cfg'.
17:06:44.390 DEBUG o.o.c.core.ConfigDispatcher[:188]- Processing openHAB main configuration file 'C:\OpenHAB\configurations\openhab.cfg'.
17:06:44.426 DEBUG o.o.c.internal.CoreActivator[:124]- UUID file already exists at 'C:\OpenHAB\webapps\static\uuid' with content '5ae3316e-72f5-4b9d-8df6-36861c7702cc'
17:06:44.645 DEBUG o.o.c.internal.CoreActivator[:146]- Created file 'C:\OpenHAB\webapps\static\version' with content '1.2.0'
17:06:44.653 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
17:06:44.684 DEBUG o.o.c.a.i.AutoUpdateActivator[:51]- AutoUpdate binding has been started.
17:06:45.691 DEBUG o.o.m.p.i.PersistenceModelActivator[:43]- Registered 'persistence' configuration parser
17:06:45.714 DEBUG o.o.c.t.i.TransformationActivator[:58]- Transformation Service has been started.
17:06:45.790 DEBUG o.o.i.g.internal.GCalActivator[:54]- Google Calendar IO has been started.
17:06:45.823 DEBUG o.o.i.g.i.p.GCalPresenceSimulation[:161]- Scheduled Google Calendar Upload-Job with interval '10'
17:06:45.828 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'presencesimulation.persist' can not be found
17:06:45.878 DEBUG o.o.i.m.i.MultimediaActivator[:54]- Multimedia I/O bundle has been started.
17:06:45.963 DEBUG o.o.i.s.i.DiscoveryServiceActivator[:47]- Discovery service has been started.
17:06:46.097 DEBUG o.o.m.i.i.ItemModelActivator[:44]- Registered 'item' configuration parser
17:06:46.306 DEBUG o.o.b.s.i.SerialActivator[:51]- Serial binding has been started.
17:06:46.318 DEBUG o.o.c.i.items.ItemRegistryImpl[:165]- Item provider 'GenericItemProvider' has been added.
17:06:47.223 DEBUG o.o.m.s.i.SitemapModelActivator[:43]- Registered 'sitemap' configuration parser
17:06:47.341 DEBUG o.o.i.r.internal.RESTActivator[:53]- REST API has been started.
17:06:47.546 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
17:06:47.721 INFO  o.a.cpr.AtmosphereFramework[:742]- Installing BroadcastFilter class(es) org.atmosphere.client.FormParamFilter
17:06:47.739 INFO  o.a.cpr.AtmosphereFramework[:1118]- Auto detecting atmosphere handlers /WEB-INF/classes/
17:06:47.748 WARN  o.a.cpr.AtmosphereFramework[:814]- Missing META-INF/atmosphere.xml but found the Jersey runtime. Starting Jersey
17:06:47.767 INFO  o.a.cpr.AtmosphereFramework[:364]- Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path: /*
17:06:47.769 INFO  o.a.cpr.AtmosphereFramework[:1173]- Auto detecting WebSocketHandler in /WEB-INF/classes/
17:06:47.790 INFO  o.a.cpr.AtmosphereFramework[:1099]- Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.
17:06:47.793 INFO  o.a.cpr.AtmosphereFramework[:902]- Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
17:06:47.806 INFO  o.a.h.ReflectorServletProcessor[:126]- Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer
17:06:47.954 INFO  c.s.j.s.i.a.WebApplicationImpl[:791]- Initiating Jersey application, version 'Jersey: 1.11 12/09/2011 11:05 AM'
17:06:47.963 INFO  c.s.j.s.i.a.WebApplicationImpl[:802]- Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
17:06:48.015 INFO  c.s.j.s.i.a.DeferredResourceConfig[:97]- Instantiated the Application class org.openhab.io.rest.internal.RESTApplication
17:06:48.782 INFO  o.a.cpr.AtmosphereFramework[:589]- Installed Default AtmosphereInterceptor [Android Interceptor Support, SSE Interceptor Support, JSONP Interceptor Support]. Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults in your xml to disable them.
17:06:48.792 WARN  o.a.cpr.AtmosphereFramework[:509]- No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the HeaderBroadcasterCache.
17:06:48.797 WARN  o.a.cpr.AtmosphereFramework[:533]- Neither TrackMessageSizeInterceptor or TrackMessageSizeFilter are installed. atmosphere.js may receive glued and incomplete message.
17:06:48.800 INFO  o.a.cpr.AtmosphereFramework[:537]- HttpSession supported: false
17:06:48.802 INFO  o.a.cpr.AtmosphereFramework[:538]- Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
17:06:48.805 INFO  o.a.cpr.AtmosphereFramework[:539]- Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
17:06:48.808 INFO  o.a.cpr.AtmosphereFramework[:540]- Using Broadcaster: org.atmosphere.jersey.JerseyBroadcaster
17:06:48.812 INFO  o.a.cpr.AtmosphereFramework[:541]- Atmosphere Framework 1.0.4 started.
17:06:48.813 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
17:06:48.815 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server._tcp.local. at port 8080
17:06:55.173 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server-ssl._tcp.local. at port 8443
17:06:55.583 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
17:06:55.740 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.script'
17:06:55.837 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy db4o.everyHour with cron expression 0 0 * * * ?
17:06:55.848 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy db4o.everyDay with cron expression 0 0 0 * * ?
17:06:55.866 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'db4o.persist'
17:06:55.878 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy exec.everyMinute with cron expression 0 * * * * ?
17:06:55.879 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'exec.persist'
17:06:55.890 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'logging.persist'
17:06:55.899 DEBUG o.o.c.p.i.PersistenceManager[:336]- Item 'DemoSwitch' does not exist.
17:06:55.902 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Temperature' does not exist.
17:06:55.904 DEBUG o.o.c.p.i.PersistenceManager[:349]- Item group 'Weather_Chart' does not exist.
17:06:55.908 DEBUG o.o.c.p.i.PersistenceManager[:451]- Scheduled strategy rrd4j.everyMinute with cron expression 0 * * * * ?
17:06:55.909 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'rrd4j.persist'
17:06:56.006 DEBUG o.o.b.s.internal.SerialDevice[:125]- Serial port 'COM15' has been found.
17:06:56.182 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
17:06:57.845 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
17:06:58.547 DEBUG o.o.m.r.i.RuleModelActivator[:62]- Registered 'rules' configuration parser
17:06:58.568 DEBUG o.o.m.r.i.engine.RuleEngine[:98]- Started rule engine
17:07:06.404 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.rules'
17:07:11.942 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
17:07:12.048 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
17:07:18.308 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'ON'.
17:07:18.634 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@43c3139c' is empty
17:07:18.643 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@43c3139c' is empty
17:07:18.731 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
17:07:24.367 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlamp' with value 'OFF'.
17:07:24.690 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@43c3139c' is empty
17:07:24.704 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@43c3139c' is empty
17:07:24.745 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.

Thank you

Frederico

unread,
Jul 31, 2013, 11:21:15 AM7/31/13
to ope...@googlegroups.com, mfg...@gmail.com
Do you get the same behavior using 9600 baudrate on the arduino side?

mfg...@gmail.com

unread,
Jul 31, 2013, 12:58:11 PM7/31/13
to ope...@googlegroups.com, mfg...@gmail.com
I use   Serial.begin(9600);  in my arduino sketch, so apparently yes.

mfg...@gmail.com

unread,
Jul 31, 2013, 6:27:56 PM7/31/13
to ope...@googlegroups.com, mfg...@gmail.com
Hello,

Ok, I have deleted everything, deinstalled java, scanned the registry and reinstalled and rewrote the code.
Now it works much better. There are still some strange things going on but I can now control three lamps, nice.

When I use the Android app it works quiet well, but with firefox I can only switch the small_kitchenlight. When I click on the other lamps the command line says TOGGLE and the switches move back and forth but don't switch anything. But the code is exactly the same for all three switches, strange.
And there seems to be a problem with the state of the switches because
1. the on and off of the lamp symbol has nothing to do with the state of the actual lamp. How can I change this? Maybe postUpdate or something like that? But how exactly?
2. when I switch between app and browser the symbols and the positions of the switches get completely messed up.


here is the items file:

Switch small_kitchenlight "small kitchenlight"
String small_bedroomlight "small bedroomlight"
String big_kitchenlight "big kitchenlight"


String Arduino "Arduino" {serial="COM15"}


here is the sitemaps file:


sitemap jarvis label="Jarvis"
{
  Frame
    {
        Switch item=small_kitchenlight
        Switch item=small_bedroomlight
        Switch item=big_kitchenlight
    }
}


and here is the rules file:

   
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*

rule small_kitchenlightOn
when
    Item small_kitchenlight changed from OFF to ON

then
    sendCommand(Arduino, "a")
end

rule small_kitchenlightOff
when
    Item small_kitchenlight changed from ON to OFF

then
    sendCommand(Arduino, "b")
end

rule small_bedroomlightOn
when
    Item small_bedroomlight changed from OFF to ON
then
    sendCommand(Arduino,"c")
end

rule small_bedroomlightOff
when
    Item small_bedroomlight changed from ON to OFF
then
    sendCommand(Arduino,"d")
end

rule big_kitchenlightOn
when
    Item big_kitchenlight changed from OFF to ON
then
    sendCommand(Arduino, "e")
end

rule big_kitchenlightOff
when
    Item big_kitchenlight changed from ON to OFF
then
    sendCommand(Arduino, "f")
end


The log if somebody has the time to have a look at it: (first I used the app and than firefox)

00:03:41.688 DEBUG o.o.c.s.i.SchedulerActivator[:56]- Scheduler has been started.
00:03:41.760 INFO  o.q.impl.StdSchedulerFactory[:1175]- Using default implementation for ThreadExecutor
00:03:41.784 INFO  o.q.core.SchedulerSignalerImpl[:61]- Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
00:03:41.784 INFO  o.quartz.core.QuartzScheduler[:243]- Quartz Scheduler v.2.1.7 created.
00:03:41.786 INFO  org.quartz.simpl.RAMJobStore[:154]- RAMJobStore initialized.
00:03:41.787 INFO  o.quartz.core.QuartzScheduler[:268]- Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'

  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

00:03:41.788 INFO  o.q.impl.StdSchedulerFactory[:1324]- Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'
00:03:41.789 INFO  o.q.impl.StdSchedulerFactory[:1328]- Quartz scheduler version: 2.1.7
00:03:41.790 INFO  o.quartz.core.QuartzScheduler[:534]- Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
00:03:41.798 DEBUG o.o.c.core.ConfigDispatcher[:166]- Processing openHAB default configuration file 'C:\Users\steve\Desktop\openhab\openhab-runtime-1.2.0\configurations\openhab_default.cfg'.
00:03:41.910 DEBUG o.o.c.core.ConfigDispatcher[:188]- Processing openHAB main configuration file 'C:\Users\steve\Desktop\openhab\openhab-runtime-1.2.0\configurations\openhab.cfg'.
00:03:41.919 WARN  o.o.c.core.ConfigDispatcher[:192]- Main openHAB configuration file 'configurations/openhab.cfg' does not exist.
00:03:41.930 DEBUG o.o.c.internal.CoreActivator[:124]- UUID file already exists at 'C:\Users\steve\Desktop\openhab\openhab-runtime-1.2.0\webapps\static\uuid' with content 'c2600714-0377-4df3-b57a-2780c7eaedf1'
00:03:42.219 DEBUG o.o.c.internal.CoreActivator[:146]- Created file 'C:\Users\steve\Desktop\openhab\openhab-runtime-1.2.0\webapps\static\version' with content '1.2.0'
00:03:42.228 INFO  o.o.c.internal.CoreActivator[:92]- openHAB runtime has been started (v1.2.0).
00:03:42.263 DEBUG o.o.c.a.i.AutoUpdateActivator[:51]- AutoUpdate binding has been started.
00:03:43.480 DEBUG o.o.m.p.i.PersistenceModelActivator[:43]- Registered 'persistence' configuration parser
00:03:43.505 DEBUG o.o.c.t.i.TransformationActivator[:58]- Transformation Service has been started.
00:03:43.575 DEBUG o.o.i.g.internal.GCalActivator[:54]- Google Calendar IO has been started.
00:03:43.636 DEBUG o.o.i.g.i.p.GCalPresenceSimulation[:161]- Scheduled Google Calendar Upload-Job with interval '10'
00:03:43.641 DEBUG o.o.m.c.i.ModelRepositoryImpl[:83]- Configuration model 'presencesimulation.persist' can not be found
00:03:43.658 DEBUG o.o.i.m.i.MultimediaActivator[:54]- Multimedia I/O bundle has been started.
00:03:43.755 DEBUG o.o.i.s.i.DiscoveryServiceActivator[:47]- Discovery service has been started.
00:03:43.898 DEBUG o.o.m.i.i.ItemModelActivator[:44]- Registered 'item' configuration parser
00:03:44.025 DEBUG o.o.b.s.i.SerialActivator[:51]- Serial binding has been started.
00:03:44.072 DEBUG o.o.c.i.items.ItemRegistryImpl[:165]- Item provider 'GenericItemProvider' has been added.
00:03:45.125 DEBUG o.o.m.s.i.SitemapModelActivator[:43]- Registered 'sitemap' configuration parser
00:03:45.235 DEBUG o.o.i.r.internal.RESTActivator[:53]- REST API has been started.
00:03:45.466 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92]- mDNS service has been started
00:03:45.655 INFO  o.a.cpr.AtmosphereFramework[:742]- Installing BroadcastFilter class(es) org.atmosphere.client.FormParamFilter
00:03:45.674 INFO  o.a.cpr.AtmosphereFramework[:1118]- Auto detecting atmosphere handlers /WEB-INF/classes/
00:03:45.682 WARN  o.a.cpr.AtmosphereFramework[:814]- Missing META-INF/atmosphere.xml but found the Jersey runtime. Starting Jersey
00:03:45.722 INFO  o.a.cpr.AtmosphereFramework[:364]- Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path: /*
00:03:45.724 INFO  o.a.cpr.AtmosphereFramework[:1173]- Auto detecting WebSocketHandler in /WEB-INF/classes/
00:03:45.747 INFO  o.a.cpr.AtmosphereFramework[:1099]- Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.
00:03:45.750 INFO  o.a.cpr.AtmosphereFramework[:902]- Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
00:03:45.764 INFO  o.a.h.ReflectorServletProcessor[:126]- Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer
00:03:45.869 INFO  c.s.j.s.i.a.WebApplicationImpl[:791]- Initiating Jersey application, version 'Jersey: 1.11 12/09/2011 11:05 AM'
00:03:45.878 INFO  c.s.j.s.i.a.WebApplicationImpl[:802]- Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
00:03:45.931 INFO  c.s.j.s.i.a.DeferredResourceConfig[:97]- Instantiated the Application class org.openhab.io.rest.internal.RESTApplication
00:03:46.682 INFO  o.a.cpr.AtmosphereFramework[:589]- Installed Default AtmosphereInterceptor [Android Interceptor Support, SSE Interceptor Support, JSONP Interceptor Support]. Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults in your xml to disable them.
00:03:46.692 WARN  o.a.cpr.AtmosphereFramework[:509]- No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the HeaderBroadcasterCache.
00:03:46.697 WARN  o.a.cpr.AtmosphereFramework[:533]- Neither TrackMessageSizeInterceptor or TrackMessageSizeFilter are installed. atmosphere.js may receive glued and incomplete message.
00:03:46.700 INFO  o.a.cpr.AtmosphereFramework[:537]- HttpSession supported: false
00:03:46.703 INFO  o.a.cpr.AtmosphereFramework[:538]- Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
00:03:46.705 INFO  o.a.cpr.AtmosphereFramework[:539]- Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
00:03:46.708 INFO  o.a.cpr.AtmosphereFramework[:540]- Using Broadcaster: org.atmosphere.jersey.JerseyBroadcaster
00:03:46.712 INFO  o.a.cpr.AtmosphereFramework[:541]- Atmosphere Framework 1.0.4 started.
00:03:46.714 INFO  o.o.i.r.i.RESTApplication[:158]- Started REST API at /rest
00:03:46.716 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server._tcp.local. at port 8080
00:03:53.137 DEBUG o.o.i.s.i.DiscoveryServiceImpl[:63]- Registering new service _openhab-server-ssl._tcp.local. at port 8443
00:03:53.214 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.sitemap'
00:03:53.409 DEBUG o.o.b.s.internal.SerialDevice[:125]- Serial port 'COM15' has been found.
00:03:53.579 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.items'
00:03:55.909 INFO  o.o.u.w.i.s.WebAppServlet[:99]- Started Classic UI at /openhab.app
00:03:56.493 DEBUG o.o.m.r.i.RuleModelActivator[:62]- Registered 'rules' configuration parser
00:03:56.528 DEBUG o.o.m.r.i.engine.RuleEngine[:98]- Started rule engine
00:04:03.829 INFO  o.o.m.c.i.f.FolderObserver[:163]- Loaded file 'jarvis.rules'
00:04:23.346 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:23.475 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:28.725 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlight' with value 'ON'.
00:04:29.083 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:29.097 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:29.239 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:33.227 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlight' with value 'OFF'.
00:04:33.241 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlightOff'
00:04:33.545 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:33.554 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:33.578 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'b' to serial port COM15
00:04:33.630 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:34.207 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off' on serial port COM15
00:04:35.167 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_bedroomlight' with value 'ON'.
00:04:35.494 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:35.508 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:35.578 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:37.258 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_bedroomlight' with value 'OFF'.
00:04:37.269 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_bedroomlightOff'
00:04:37.340 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'd' to serial port COM15
00:04:37.576 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:37.584 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:37.631 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:37.767 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off2' on serial port COM15
00:04:40.708 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_bedroomlight' with value 'ON'.
00:04:40.740 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_bedroomlightOn'
00:04:40.767 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'c' to serial port COM15
00:04:41.084 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:41.097 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:41.220 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:41.318 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'on2' on serial port COM15
00:04:43.564 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_bedroomlight' with value 'OFF'.
00:04:43.576 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_bedroomlightOff'
00:04:43.583 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'd' to serial port COM15
00:04:43.891 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:43.903 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:43.980 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:44.105 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off2' on serial port COM15
00:04:45.290 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/big_kitchenlight' with value 'ON'.
00:04:45.612 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:45.625 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:45.720 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:46.974 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/big_kitchenlight' with value 'OFF'.
00:04:46.982 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'big_kitchenlightOff'
00:04:47.011 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'f' to serial port COM15
00:04:47.295 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:47.309 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:47.356 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:47.672 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off3' on serial port COM15
00:04:48.583 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/big_kitchenlight' with value 'ON'.
00:04:48.594 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'big_kitchenlightOn'
00:04:48.616 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'e' to serial port COM15
00:04:48.905 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:48.918 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:48.996 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:49.278 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'on3' on serial port COM15
00:04:50.644 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/big_kitchenlight' with value 'OFF'.
00:04:50.649 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'big_kitchenlightOff'
00:04:50.656 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'f' to serial port COM15
00:04:50.959 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:50.972 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:51.041 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:51.316 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off3' on serial port COM15
00:04:54.019 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/small_kitchenlight' with value 'ON'.
00:04:54.033 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlightOn'
00:04:54.053 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'a' to serial port COM15
00:04:54.343 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:54.357 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:54.438 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:54.573 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'on' on serial port COM15
00:04:54.711 DEBUG o.o.i.r.i.r.ItemResource[:200]- Received HTTP POST request at 'items/big_kitchenlight' with value 'ON'.
00:04:54.723 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'big_kitchenlightOn'
00:04:54.727 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'e' to serial port COM15
00:04:55.032 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:55.047 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:04:55.137 DEBUG o.o.i.r.i.r.SitemapResource[:157]- Received HTTP GET request at 'sitemaps/jarvis/jarvis' for media type 'null'.
00:04:55.390 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'on3' on serial port COM15
00:05:16.062 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlightOff'
00:05:16.067 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'b' to serial port COM15
00:05:16.372 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:05:16.375 DEBUG o.o.i.r.i.b.GeneralBroadcaster[:61]- broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@244a255c' is empty
00:05:16.595 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'off' on serial port COM15
00:05:23.419 DEBUG o.o.m.r.i.engine.RuleEngine[:305]- Executing rule 'small_kitchenlightOn'
00:05:23.430 DEBUG o.o.b.s.internal.SerialDevice[:236]- Writing 'a' to serial port COM15
00:05:23.951 DEBUG o.o.b.s.internal.SerialDevice[:214]- Received message 'on' on serial port COM15



mfg...@gmail.com

unread,
Jul 31, 2013, 8:23:13 PM7/31/13
to ope...@googlegroups.com, mfg...@gmail.com
Good morning,

A miracle, well in fact I just noticed that my items are not identical.
I accidentally chose the string item two times from the context menu.
To correct this made it possible to control the lights from the browser, too.
but there is still something going on with the states: When I switch a light in the browser the state gets updated to the andorid app, but not the other way around.
When I flip a switch on the app the browser doesn't change its switches.
Any ideas?

Thank you



Thomas Eichstädt-Engelen

unread,
Aug 1, 2013, 4:31:23 AM8/1/13
to ope...@googlegroups.com
The Classic-UI only supports Webkit compatible browsers which Firefox isn't. Could you retest with Safari or Chrome?

Regards,

Thomas E.-E.


mfg...@gmail.com

unread,
Aug 1, 2013, 5:55:48 AM8/1/13
to ope...@googlegroups.com
Thank you Thomas,

Chrome looks good, so far.

mfg...@gmail.com

unread,
Aug 1, 2013, 7:34:49 AM8/1/13
to ope...@googlegroups.com, mfg...@gmail.com
Hi,

now when I start openHAB, the first time I use the switches they don't work, but the second time they do.
So to make all the switches work i have to press every switch once, which is weird. The serial command does not get send to the arduino the first time.
which looks like this:

2013-08-01 13:24:43 - big_kitchenlight received command ON            //Lamp does not turn on, no serial sent
2013-08-01 13:24:48 - big_kitchenlight received command OFF
2013-08-01 13:24:48 - Arduino received command f                               //Signal for Off has been sent

Whatever that means, I would like to send the information whether Arduino has actually done anything to openHAB via serial.
The Ardino part is very simple, but I am not sure how to integrate the signal into OpenHAB since I have several lamps now.
How does OpenHAB now which lamp is in which state, or if I sent the signan On over serial how do I tell OpenHAB that this On refers to Lamp 3? I could probably use the same procedure to send the status of external switches or PIR's, which would be great.

Could you enlighten me, please.
Thank you

mfg...@gmail.com

unread,
Aug 1, 2013, 7:44:35 AM8/1/13
to ope...@googlegroups.com, mfg...@gmail.com
Hello again,

Is there something like serai.read() in OpenHAB?

Thanks

Frederico

unread,
Aug 1, 2013, 7:50:01 AM8/1/13
to ope...@googlegroups.com, mfg...@gmail.com
Hi!

Maybe your issue is related to the state not being initialized and thus the rule for change from OFF to ON not being triggered. I'f try with rules for command received and not for the change of state. In my case I must do this because my arduino controls some appliances that are also controlled by the previously existing shutter switches.

Regarding you question about having more than one logical device controlled by arduino - the solution I use (for sensors) is the serialsensor binding that you can read about in this thread: https://groups.google.com/forum/#!searchin/openhab/khome$20serial$20binding/openhab/f51iObl_ORM/6XKriHP5hPwJ .

org.openhab.bindings.serialsensor
 
Used to parse string data in the form
id=XXX;type=X;value=XXX, e.g. my setup uses something like id=A09;type=t;value=22.1 for temperature data from specific TX3TH sensor
Can be bound to String or Number item in the form
Number myT {serialsensor="COM15:A09:t"}
which specifies com-port, sensor id and sensor type

Hope this helps.

Regards,
    Frederico

mfg...@gmail.com

unread,
Aug 1, 2013, 8:02:00 AM8/1/13
to ope...@googlegroups.com, mfg...@gmail.com
Hello Frederico,

this sound very interesting I will try to figure it out.

Thank you very much.

mfg...@gmail.com

unread,
Aug 2, 2013, 5:13:33 AM8/2/13
to ope...@googlegroups.com, mfg...@gmail.com
Hello,

I figured this out now.
Apparently everything that comes in on the serial bus couses an update of the item which is binded to that port. When my arduino  sends   Serial.write("doorClosed"); this causes an update of the status of the arduino to doorClosed.
---------
Arduino state updated to doorClosed
---------
This wouldn't be of much help since I don't want the status of my ardino to be changed but e.g. the PIR sensor or the door contact.
What solves my problem is that according to the documentation I can wait for specific updates with
Item <item> received update [<state>] and write a rule that gets triggered by it.
--------
rule doorclosed
when
Item Arduino received update doorClosed
then
postUpdate("Door","CLOSED")
end
--------
Door state updated to CLOSED
-----
This way I can update the status of every item based on whatever comes in on the serial bus.
And it works, so far.
This is great.

Thank you for your help.
Sebastian




Am Mittwoch, 31. Juli 2013 15:23:31 UTC+2 schrieb mfg...@gmail.com:
Reply all
Reply to author
Forward
0 new messages