Skip to content

OpenHAB

204 Topics 2.4k Posts
  • Use of mqtt gateway from other sensors

    6
    0 Votes
    6 Posts
    3k Views
    AWIA
    @staehler try this ;-)
  • openhab controlling rc switch on raspberry pi

    rc switch openhab
    6
    0 Votes
    6 Posts
    4k Views
    siodS
    @Jan-Gatzke said: Did you install the exec addon? Thank you Sir! was asking in a different forum as well, nobody had the idea to install this binding first and I didn´t know a binding is needed for execution of commands... Well then, problem solved :+1: :)
  • Adding a light switch to Openhab/MQTT gateway

    5
    0 Votes
    5 Posts
    5k Views
    R
    The statements from jmmorgan and Xander both look OK to me. mine is: Switch node1_sw1 "sw1" {mqtt=">[mysensors:MyMQTT/1/1/V_LIGHT:command:ON:1],>[mysensors:MyMQTT/1/1/V_LIGHT:command:OFF:0],<[mysensors:MyMQTT/1/1/V_LIGHT:command:MAP(1on0off.map)]"}
  • Connect openhab on a raspberry to and arduino running the serial gateway

    2
    0 Votes
    2 Posts
    3k Views
    L
    Ok I found the error. I may or may not have forgotten to add the serial addon :sweat_smile: It is strange though that you get no kind of error message without that...
  • Openhab serial gateway and mysensors device discovery - tutorial

    8
    2 Votes
    8 Posts
    7k Views
    andredtsA
    @l154 If you have let´s say the "unconfigured" group on your sitemap, and the item is set to that group, it will appear automatically.
  • Problem on cummunicate beween arduino Mosquitto broker openhab

    11
    0 Votes
    11 Posts
    7k Views
    E
    anybody, any ideea? how to set mosquitto in my pc? please help.... thanks.
  • Universal gateway for 315/433Mhz devices

    hashmap openhab 433mhz 315mhz
    4
    0 Votes
    4 Posts
    7k Views
    S
    @C.r.a.z.y. I'm sure there's a way to use it without the MySensors stuff, but that's a little bit out of my scope. I'd imagine it would just involve writing up an Arduino sketch for a device with a 433Mhz transmitter and receiver and have it listen for serial commands. OpenHAB can send whatever you want to serial. As for transmitting, it seems to work with the arduino sketch I posted earlier, but I still need to put some kind of protection in place to prevent a feedback loop since it also listens for codes. When I make it transmit, it gets stuck sending and receiving the same code to itself. A basic example of testing the transmit (I'd unplug the receiver if you haven't fixed the loop issue) would be: rule "two-outlet ON update" when Item two_outlet_ON received update if(two_outlet_ON.state==ON) { sendCommand(Arduino, "105;0;1;0;24;" + CodeToItemsMap.get("two_Outlet_ON") + "\n") OUTLET1.state = ON } end This isn't as clean as I'd like, since I'm still basically defining the command with the exception of the code itself. But it does work!
  • OpenHab MQTT Gateway Error - Unable to connect to server

    4
    0 Votes
    4 Posts
    3k Views
    bpairB
    One more update. The port forwarding was not a complete fix. The real culprit was my Asus RT-N66U router which has LAN-WAN firewall. When enabled it was allowing wan traffic to my gateway but not allowing a response from my gateway out to the controller.
  • openHAB serial communication to Arduino

    4
    0 Votes
    4 Posts
    5k Views
    T
    @kunall said: @Tango2 Here is a tutorial for that. Hope that helps :) I'm getting closer.... I have my r-pi2 now, and I'm building openhab on there. I also got my dupont cables I ordered to connect my nRF24L01's up. I now have the r-pi and arduino uno (gateway) connected and wired up. Part of the problem I was having before must have been with VMWare ESXI, because now openhab sees my Arduino, however it only sees it on ttyACM0, not ttyUSB99 like it should based on the tutorial above. Should I change the syslink to ttyACM99? The tutorial doesn't specify, and my linux skills are far from good enough to know this off hand. I appreciate the help and look forward to setting some of these sensors up! EDIT: I did change the demo.items from the link that kunall posted above to reflect ttyACM0, and received the "0;0;3;0;14;Gateway startup complete." message, so I'm making progress, however I'd like to get the static assignment working for stability down the road.
  • How to create new icons for openhab ? (Solved)

    2
    0 Votes
    2 Posts
    4k Views
    S
    So it does work ! I was not activating the item so the closed icon was not displayed on the screen. As soon as I was updating the state to open or closed the icon was here !! So it has to do with the fact that when the app starts the state of the item is not known and the system is unable to select the proper icon. So I added an other icon with no state this time "motion.png" this one is displayed on start up !!!. Several icons are needed : a generic one "myicon.png" to be used when the state is not known various icons "myicon-statex.png" to be used when the icon is in the x state Shasha
  • MQTT & openhab

    22
    0 Votes
    22 Posts
    14k Views
    TotcheT
    @tekka Ah OK, it's better to know it, thanks; ;) And I found the error this morning and it works great...... To create the configuration file for openHAB, I made a copy/paste of the Mysensors example., and I haven't seen it was a space character at the beginning of each lines. I removed it, and it's working fine.now So be carefull with the spaces, it was a stupid mistake and boring to find. I have done this test 5 times, so I'm sure that it's the problem. Thank you everybody....
  • OpenHab Questions

    openhab openhab mqtt
    2
    0 Votes
    2 Posts
    2k Views
    F
    Hello Chaotic, You can trigger openhab rules and commands based on time conditions. Look at https://github.com/openhab/openhab/wiki/Rules#time-based-triggers for more details. As an example, I am using it to turn on outdoor lights in the evening and turn then off in the morning. Hope this helps.
  • Data from MQTT Gateway not pushing to OpenHab

    openhab mqtt
    4
    0 Votes
    4 Posts
    4k Views
    A
    r u sure add the addon folder.. org.openhab.binding.mqtt-1.6.2 then check in opehab config.. add ur ip of ur arduino gateway and port thats happens to me then end up got it working byself when restart and disconnect the mqtt client from @Jerady ... i check ur debug too many try remove many addons and focus on one thing a time and will able to help ;-) like i did...
  • MQTT gateway - Openhab & Mosquitto

    mqtt mosquitto openhab broker
    4
    0 Votes
    4 Posts
    5k Views
    A
    @alexeinz figured it out, apparently had to add experimental and get latest mosquitto for the conf file to work correctly , now the bridge is working perfectly :+1: --- broker.conf file in /etc/mosquitto/conf.d the topics coming from gw will appear under sensor/# on mosquitto connection MMQTTtoSensor address 192.168.1.234 <-gw ip clientid MyMQTT cleansession true notifications true topic # in 2 sensor/ MyMQTT/
  • Connect humidity sensor to OpenHAB

    openhab mqtt humidity connecting openhab sensor
    4
    0 Votes
    4 Posts
    3k Views
    XanderX
    @vladimir No, I use a WIZ5100 module. Search the forum. Many users (try) :-)) to use ENC28J60.
  • OpenHab mqtt binding only one topic

    mqtt topic openhab
    5
    0 Votes
    5 Posts
    6k Views
    M
    I really don't think this is a sitemap issue. I don't know the language well enough to speak of this but the error I am getting is [ERROR] [o.u.i.items.ItemUIRegistryImpl:411 ] - Cannot retrieve item 'itm_office_mqtt_motion_switch' for widget org.openhab.model.sitemap.Switch This makes me think it is an item issue not a sitemap issue. I captured this startup information from the log file: [DEBUG] [.b.mqtt.internal.MqttActivator:34 ] - MQTT binding has been started. [DEBUG] [i.internal.GenericItemProvider:334 ] - Start processing binding configuration of Item 'itm_office_mqtt_string (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader. [DEBUG] [b.mqtt.internal.MqttItemConfig:71 ] - Loaded MQTT config for item 'itm_office_mqtt_string' : 1 subscribers, 0 publishers [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476 ] - Starting message consumer for broker 'officepi' on topic 'office_string' [DEBUG] [m.internal.MqttEventBusBinding:61 ] - MQTT: Activating event bus binding. It shows the process for binding the itm_office_mqtt_string Item, but there is no mention of the binding of the itm_office_mqtt_motion_switch Item. Should there be? If so, anyone know why it might not be there? As I said above, when I comment out the itm_office_mqtt_string Item in the items file, OpenHab refreshes (see below) and allows the itm_office_mqtt_motion_switch Switch Item to function. [INFO ] [c.internal.ModelRepositoryImpl:97 ] - Refreshing model 'mini.items' [DEBUG] [i.internal.GenericItemProvider:154 ] - Processing binding configs for items from model 'mini.items' [DEBUG] [m.i.MqttGenericBindingProvider:73 ] - Removing message consumers for item itm_office_mqtt_string [DEBUG] [o.i.t.m.i.MqttBrokerConnection:505 ] - Unsubscribing message consumer for topic 'office_string' from broker 'officepi' [DEBUG] [m.i.MqttGenericBindingProvider:106 ] - Removing message publishers for item itm_office_mqtt_string [DEBUG] [b.mqtt.internal.MqttItemConfig:71 ] - Loaded MQTT config for item 'itm_office_mqtt_motion_switch' : 1 subscribers, 0 publishers [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476 ] - Starting message consumer for broker 'officepi' on topic 'office_motion' [DEBUG] [i.internal.GenericItemProvider:133 ] - Read items from model 'mini.items' The sitemap works when the item can be retrieved, but I don't know why only one item is being retrieved, not both.
  • Openhab MQTT Example

    openhab mqtt ex
    49
    0 Votes
    49 Posts
    69k Views
    F
    coming back to the initial issue, is there anyone that can post items and maps configuration to test the binary switch example of mysensors? my configuration is arduino uno+w5100 and mqtt gateway, opnhab on windows pc on the same network
  • Battery level to openHAB

    mqtt battery openhab
    2
    1 Votes
    2 Posts
    4k Views
    gaduG
    http://forum.mysensors.org/topic/802/mqtt-and-batterylevel/2
  • RTC sensor and Openhab

    1
    0 Votes
    1 Posts
    980 Views
    No one has replied
  • OpenHab, MQTT gateway and Battery level - how?

    mqtt openhab
    3
    0 Votes
    3 Posts
    2k Views
    gaduG
    Hi @doctor64 , How did you solve the battery reporting? Did you implement the changes in h and cpp file from the link and compiled/uploaded the gateway sketch again?

20

Online

11.7k

Users

11.2k

Topics

113.1k

Posts