Skip to content

OpenHAB

204 Topics 2.4k Posts
  • Gateway suggestion

    10
    0 Votes
    10 Posts
    3k Views
    Freedom1029F
    Thanks for the info. I'll try to install that tonight.
  • 0 Votes
    6 Posts
    3k Views
    D
    My fix was listed above. restarting the routers and defining the static IP
  • openhab send message to mysensors, serial, mysensorbinding

    3
    0 Votes
    3 Posts
    2k Views
    NickBuilderN
    This has been solved! Hi @stoffej! Can you please try to assist me on a very similar topic? I've built the EnergyMeterPulseSensor.ino pulse count sensor from the 2.0 library but I'm unable to initialize the items and I'm quite certain that this is why I'm not getting any values into Openhab. The Arduino is waiting for a request to be acknowledged which I guess is not happening. I have enabled persistence for the pulse counter items and I've also tried to initialize the items by manually sending a value through the openhab console (telnet localhost 5555). After updating the values manually I can see the new value in the sitemap-GUI but the actual counting does not start. After restarting Openhab the following is shown in the log: ... - New Item "myPCVar (Type=NumberItem, state=Uninitialized) based on configuration "50;1;V_VAR1" A funny thing is that I actually got it working while working on the pulse counter on an experimental setup without actually trying to initialize the items. I don't know what I did at that time or if it started working just by chance. Do you have any ideas of what steps to try? Thanks! Ah forget what I wrote. Its working now. I guess it was a poor radio module which seems to be the reason in a lot of cases.
  • [Tutorial] openHAB with serial gateway

    78
    7 Votes
    78 Posts
    76k Views
    HenryWhiteH
    @TimO Great! Thank you!
  • Can't get message from OpenHab to MySensor

    mqtt openhab
    5
    0 Votes
    5 Posts
    3k Views
    gyroG
    @Eric-Buhring great to hear that you managed to get it working. I have used solution like this (arduino+eth. shield+rf24) for some time. Now I have switched to esp8266+rf24(version with antenna) as a gateway, it is a cool (and smaller) solution
  • OpenHAB not assigning node id

    2
    0 Votes
    2 Posts
    1k Views
    greglG
    replied to your thread over here: https://community.openhab.org/t/openhab-not-assigning-mysensors-node-id/12642
  • Serial Gateway connection to Openhab

    development ope
    86
    1 Votes
    86 Posts
    81k Views
    T
    Hey @edsteve ! This thread mainly covers the serial connection via the serial binding and by using rules. You are using the binding for OH1, so I suggest to start a new thread or trigger @bkl. :-)
  • Rule to check if mysensors are workin

    1
    0 Votes
    1 Posts
    812 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    52 Views
    No one has replied
  • Item render others useless.

    3
    0 Votes
    3 Posts
    1k Views
    ?
    Hi @gregl EDIT: Found the problem! Missing end quotes on both my "mqtt" items. I'm not so sure it has to do with the sitemap, for it is very simple: sitemap home label="Office" { Frame label="TEST" { Switch item=OfficePin16 Switch item=OfficeRelay Text item=OneWireTempSensor1 } } Without changing my sitemap I get the following results: In my items file i have two Groups declared: Group Office Group Sensors Result 1: Number OneWireTempSensor1 "Temp 1 [%.1f °C]" <temperature> (Office, Sensors) {onewire="deviceId=28.FF14AE060000;propertyName=temperature;refreshinterval=10"} Switch OfficeRelay "Relay" <socket> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/relay:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/relay:state:MAP(onoff.map)]} Switch OfficePin16 "PIN16" <hue> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/pin16:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/pin16:state:MAP(onoff.map)]} [image: result1_160617.PNG] Items OfficeRelay and OneWireTempSensor1 is being displayed and functioning properly. OfficePin16 is not. Result 2 Switch OfficeRelay "Relay" <socket> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/relay:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/relay:state:MAP(onoff.map)]} Switch OfficePin16 "PIN16" <hue> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/pin16:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/pin16:state:MAP(onoff.map)]} Number OneWireTempSensor1 "Temp 1 [%.1f °C]" <temperature> (Office, Sensors) {onewire="deviceId=28.FF14AE060000;propertyName=temperature;refreshinterval=10"} [image: result2_160617.PNG] Item OfficeRelay is being displayed and functioning properly. OfficePin16 and OneWireTempSensor1 are not. Result 3 Switch OfficePin16 "PIN16" <hue> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/pin16:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/pin16:state:MAP(onoff.map)]} Number OneWireTempSensor1 "Temp 1 [%.1f °C]" <temperature> (Office, Sensors) {onewire="deviceId=28.FF14AE060000;propertyName=temperature;refreshinterval=10"} Switch OfficeRelay "Relay" <socket> (Office) {mqtt=">[office:odum.se/switch/in/f9fda134fe18/relay:command:*:MAP(onoff.map)],<[office:odum.se/switch/out/f9fda134fe18/relay:state:MAP(onoff.map)]} [image: result2_160617.PNG] Item OfficePin16 is being displayed and functioning properly. OfficeRelay and OneWireTempSensor1 are not. This is a piece of the log for the result 3: 2016-06-17 07:45:59.332 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame 2016-06-17 07:45:59.371 [WARN ] [.o.u.w.i.render.SwitchRenderer] - Cannot determine item type of 'OfficeRelay' org.openhab.core.items.ItemNotFoundException: Item 'OfficeRelay' could not be found in the item registry at org.openhab.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:80) ~[na:na] at org.openhab.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:554) ~[na:na] at org.openhab.ui.webapp.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:57) ~[org.openhab.ui.webapp_1.8.3.jar:na] at org.openhab.ui.webapp.internal.render.PageRenderer.renderWidget(PageRenderer.java:158) [org.openhab.ui.webapp_1.8.3.jar:na] at org.openhab.ui.webapp.internal.render.PageRenderer.processChildren(PageRenderer.java:121) [org.openhab.ui.webapp_1.8.3.jar:na] at org.openhab.ui.webapp.internal.render.PageRenderer.processChildren(PageRenderer.java:138) [org.openhab.ui.webapp_1.8.3.jar:na] at org.openhab.ui.webapp.internal.render.PageRenderer.processPage(PageRenderer.java:86) [org.openhab.ui.webapp_1.8.3.jar:na] at org.openhab.ui.webapp.internal.servlet.WebAppServlet.service(WebAppServlet.java:127) [org.openhab.ui.webapp_1.8.3.jar:na] at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na] at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na] at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60) [org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet_3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) [org.eclipse.jetty.servlet_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.Server.handle(Server.java:350) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [org.eclipse.jetty.http_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [org.eclipse.jetty.server_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [org.eclipse.jetty.io_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [org.eclipse.jetty.util_8.1.3.v20120522.jar:8.1.3.v20120522] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65] 2016-06-17 07:45:59.389 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OfficeRelay for widget org.openhab.model.sitemap.Switch 2016-06-17 07:45:59.395 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OfficeRelay for widget org.openhab.model.sitemap.Switch 2016-06-17 07:45:59.404 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OfficeRelay for widget org.openhab.model.sitemap.Switch 2016-06-17 07:45:59.411 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OfficeRelay for widget org.openhab.model.sitemap.Switch 2016-06-17 07:45:59.419 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OfficeRelay for widget org.openhab.model.sitemap.Switch 2016-06-17 07:45:59.428 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OneWireTempSensor1 for widget org.openhab.model.sitemap.Text 2016-06-17 07:45:59.437 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OneWireTempSensor1 for widget org.openhab.model.sitemap.Text 2016-06-17 07:45:59.444 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OneWireTempSensor1 for widget org.openhab.model.sitemap.Text 2016-06-17 07:45:59.452 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item OneWireTempSensor1 for widget org.openhab.model.sitemap.Text I am wondering if the items OfficePin16 and OfficeRelay are not correctly declared? Being new to this I fail to see what is wrong. If they are correct, then what can be done to make them work properly? Could it be some problem with encoding or line endings? Any help I could get would be most appreciated.
  • Openhab Binding Problem

    1
    0 Votes
    1 Posts
    891 Views
    No one has replied
  • Arduino & Openhab initial setup guide

    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • MQTT Dimmer

    3
    0 Votes
    3 Posts
    2k Views
    M
    Check out the other topic http://forum.mysensors.org/topic/3664/mqtt-dimmer-message/7
  • Trouble sending message to Relay from Openhab

    5
    0 Votes
    5 Posts
    3k Views
    CJ CassarinoC
    @Ericb2745 Well, in that case, it seems you are missing the receiving part of the code. This is directly from the example for the actuator and it works for me... It goes at the end of the code after the void loop. // process incoming message void receive(const MyMessage &message) { if (message.type == V_LIGHT) { if (message.sensor < noRelays) { // check if message is valid for relays..... previous line [[[ if (message.sensor <=noRelays){ ]]] Relays[message.sensor].relayState = message.getBool(); digitalWrite(Relays[message.sensor].relayPin, Relays[message.sensor].relayState ? RELAY_ON : RELAY_OFF); // and set relays accordingly saveState( message.sensor, Relays[message.sensor].relayState ); // save sensor state in EEPROM (location == sensor number) Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.print(message.getBool()); if(message.getBool() == 0) Serial.println(" = OFF"); else(Serial.println(" = ON")); } } }
  • Auto-ID w/ Openhab serial binding

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Cannot get my sitemap to show humidity reading

    7
    0 Votes
    7 Posts
    3k Views
    27maximilian2
    That's is good to hear. In case you would like to check your events.log at a later stage, you can find it (depending on your installation) here: /var/log/openhab/ OR /opt/openhab/logs/ See also: Openhab Log-files
  • Battery Level from Mysensor node

    battery monitor
    9
    0 Votes
    9 Posts
    4k Views
    S
    Hello there @Masonkante - I recommend that you check out my current build for reference to battery powering a custom board. I have created a board that uses a ATmega328p-au powered through a coin cell battery to act as a switch module. By all means use my thread for information on how to create a low powered arduino alternative for your desired needs. Thanks, Sam.
  • 2 Votes
    18 Posts
    8k Views
    M
    @DirkB19 Think you will get another advantage by changing as well - must be a lot easier to monitor the MQTT messages when topic clearly shows the difference.
  • Relay connection with MQTT?

    13
    0 Votes
    13 Posts
    6k Views
    G
    @mbj Thanks, I will give the MQTT Client sketch a go soon. Cheers,
  • Sending I_CONFIG to set unit of measure on sensor nodes

    6
    0 Votes
    6 Posts
    2k Views
    T
    If you only comment out the line with "sendCommand()" how often does is the rule triggered? My guess: only once. You need to distinguish if you're getting a request from the node or sending an answer.

28

Online

11.7k

Users

11.2k

Topics

113.1k

Posts