Skip to content
  • 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.
  • 0 Votes
    12 Posts
    6k Views
    T
    @AWI @Hoffan @sundberg84 I can see both sketches are working, this is what the gateway prints out: 0;0;3;0;14;Gateway startup complete. 0;0;3;0;9;read: 105-105-0 s=255,c=0,t=18,pt=0,l=5:1.5.1 105;255;0;0;18;1.5.1 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1:0 105;255;3;0;6;0 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=5:Relay 105;255;3;0;11;Relay 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=12,pt=0,l=3:1.0 105;255;3;0;12;1.0 0;0;3;0;9;read: 105-105-0 s=1,c=0,t=3,pt=0,l=0: 105;1;0;0;3; 0;0;3;0;9;read: 105-105-0 s=2,c=0,t=3,pt=0,l=0: 105;2;0;0;3; 0;0;3;0;9;read: 105-105-0 s=3,c=0,t=3,pt=0,l=0: 105;3;0;0;3; 0;0;3;0;9;read: 105-105-0 s=4,c=0,t=3,pt=0,l=0: 105;4;0;0;3; Is this correct?
  • openhab controlling rc switch on raspberry pi

    OpenHAB 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: :)
  • Universal gateway for 315/433Mhz devices

    OpenHAB 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!
  • 0 Votes
    9 Posts
    5k Views
    T
    @Chester good point, but I was restarting the arduino and still couldn't get this to work correctly. Also, the missing "end" was just missed out of the paste here, it was in my code.
  • 2 Votes
    5 Posts
    6k Views
    K
    @kunall , do you have a wiring diagram for this? I am having some issues with my relay module (but i think this is to do with it being 3.3v)
  • OpenHab Questions

    OpenHAB 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.
  • Stabile Controller

    Troubleshooting mqtt openhab serial
    9
    0 Votes
    9 Posts
    4k Views
    C
    @celonunes generally raspberry pi with serial usb but also you can see some mqtt logs. Same problem with mac os with serial usb. I also tried rpi uart pins for serial bu there is no logs for it. Maybe someone gives his Openhab dir i can understand better problem isnt related with hardware
  • MQTT gateway - Openhab & Mosquitto

    OpenHAB 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/
  • 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

    OpenHAB 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.
  • Battery level to openHAB

    OpenHAB mqtt battery openhab
    2
    1 Votes
    2 Posts
    4k Views
    gaduG
    http://forum.mysensors.org/topic/802/mqtt-and-batterylevel/2
  • OpenHab, MQTT gateway and Battery level - how?

    OpenHAB 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?
  • Openhab Puzzle Rule Programmer

    OpenHAB puzzle openhab
    4
    0 Votes
    4 Posts
    3k Views
    A
    Yes, you must copy the openhab/webapps/ directory habmin, and org.openhab.io.habmin. - ****.jar file copy the openhab/addons directory. Then http://localhost:8080/habmin/index.html this address must be available to the administration. If I remember correctly, it is up to version 1.6 of the work for me. Currently I am using 1.5.1. (Sorry for my english)
  • Raspberry Pi and MQTT-OpenHAB

    General Discussion mqtt openhab
    3
    0 Votes
    3 Posts
    3k Views
    daulagariD
    I can nothing say about OpenHAB or PiDome but: Started! 0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0: 0;0;3;0;9;version mismatch 0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0: 0;0;3;0;9;version mismatch Does not look good, it seems an error from the gateway.
  • 0 Votes
    7 Posts
    5k Views
    N
    @Rachmat-Aditiya said: fhem is more stable but you need to configure everything manually, configure 'everything' is not entirely true, in respect to MySensors there's an autocreate-mode in FHEM. You will have to manually configure the gateway (e.g. 'define gw MYSENSOR /dev/ttyUSB0'), then activate autocreate (by pressing the include-button on the gateway, or setting the autocreate-attribute on the gateway device), then restart all MySensor-nodes and fhem will create a MYSENSORS_DEVICE-entry for every Sensor that sends presentation-messages while inclusion-mode is active.

17

Online

11.7k

Users

11.2k

Topics

113.1k

Posts