Skip to content
  • 0 Votes
    4 Posts
    5k Views
    M
    Now the RPi based on a new install of Raspbian Jessie, OpenHab 1.8.0 and Mosquitto is up and running and the ESP8266 MQTT client does connect without any problems. I have not changed anything in the code but Mosquitto is now based on the RPi repository for Jessie and not the mosquito_wheezy one. That seems to have fixed it so those versions are likely different but I have not put any time into checking this.
  • 0 Votes
    6 Posts
    4k Views
    J
    @drock1985 I guess your switch string should be as follows, #Switches (Lights) switch 1: platform: mqtt state_topic: "mygateway1-out/2/1/1/0/2" command_topic: "mygateway1-in/2/1/1/0/2" name: "test1" payload_on: "1" payload_off: "0"
  • 0 Votes
    6 Posts
    4k Views
    E
    Although i like the idea, it will force you to send a value even if it has not changed. Defeats a bit a battery optimized sensor node.
  • 0 Votes
    2 Posts
    2k Views
    hekH
    I think the something about order of initialisation was changed that fixed this problem. Try 1.4.1
  • Raspberry Pi2 + MQTT Gateway in one box!

    My Project mqtt raspberry pi gateway
    12
    4 Votes
    12 Posts
    7k Views
    A
    @kunall the best recommendation against openhab for me was ugly interface and problems with running it (java). I was using domoticz since early version with own interface on arduino,now I've switched everything for MySensors. It still lacks some functions but Inwait for further development as even programmers of domoticz start to use MyS hardware :-)
  • 0 Votes
    5 Posts
    9k Views
    F
    Hey there @Chaotic ! This is Fay from codebender.cc Thank you for using codebender! I just wanted to let you know that one of the sketches you are using in this comment has been deleted and so it is not available for users to view it. Let me know if you have any question. :)
  • MQTT Gateway + wi-fi instead of ethernet

    Controllers mqtt wi-fi gateway
    4
    0 Votes
    4 Posts
    3k Views
    daulagariD
    Although it should not be too difficult to make the MQTT Gateway with WiFi work on hardware and software level it is a bad idea on system level: WiFi and MySensensor NRF24L01+ use the same 2.4 GHz band and with the antennas close a transmit from one will block the other and vice-versa.
  • 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/
  • HomeGenie via MQTT

    HomeGenie homegenie mqtt
    3
    1 Votes
    3 Posts
    6k Views
    NeverDieN
    Any updates?
  • 0 Votes
    16 Posts
    18k Views
    G
    @catcher Thanks, I tried this Perl script and it is working out of the box with OpenHAB2! And I'm sending with MySensors 2.
  • 0 Votes
    6 Posts
    3k Views
    AnticimexA
    @lafleur I abandoned it due to the fact that my Nano cannot fit it together with signing support.
  • thethingbox

    General Discussion nodered mqtt
    4
    0 Votes
    4 Posts
    3k Views
    M
    I have a project going with openhab and thethingbox. I only use Mqtt with a combination of nrf24l01 and esp8266 modules. thethingbox server is simply used as a catch all for all mqtt messages from sensors or openhab. i parse all the message coming into ththingbox and take action depending on the message. If my door or window sensor is tripped a message is sent to Twitter. I also send temp and humidity readings to thingspeak and my cell phone reports long and lat coordinates to thingspeak so that my lights can come on as I approach the house. My next project is to setup ip cameras and motion sensors and sent pics to drop box. Openhab is really not hard, you just have to keep at it, once you get it you will kick yourself for over complicating it Mike
  • MQTT Client Gateway

    My Project mqtt
    6
    2 Votes
    6 Posts
    9k Views
    T
    Very cool! Any more detail you can give on this setup?
  • 0 Votes
    42 Posts
    17k Views
    T
    Sorry. :) Hek, I using this code. Vera3 find relay and it works, but also appears 3 door sensors instead of 3 temp sensors. I try to use the my arduino board only with sd18b20 sketch and it work's and show temperature. Is it sketch suitale for vera? @Gambituk said: and here is the modified relay/temp sketch // Running DS temperature sensor(s) and relay(s) on one mysensor arduino node // Combines Onewire and Relay code // 2014-10-14 Pego: Tested and Running on Uno/Clone and MQTT gateway // Example sketch showing how to send in OneWire temperature readings // Example sketch showing how to control physical relays. // This example will remember relay state even after power failure. #include <MySensor.h> #include <SPI.h> #include <DallasTemperature.h> #include <OneWire.h>presen #define ONE_WIRE_BUS 3 // Pin where dallase sensor is connected #define MAX_ATTACHED_DS18B20 16 #define RELAY_1 4 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 2 // Total number of attached relays #define RELAY_ON 1 // GPIO value to write to turn on attached relay #define RELAY_OFF 0 // GPIO value to write to turn off attached relay unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) 30000 orig OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); MySensor gw; float lastTemperature[MAX_ATTACHED_DS18B20]; int numSensors=0; boolean receivedConfig = false; boolean metric = true; // Initialize temperature message MyMessage msg(0,V_TEMP); void setup() { // Startup OneWire sensors.begin(); // Startup and initialize MySensors library. Set callback for incoming messages. //gw.begin(); gw.begin(incomingMessage, AUTO, true); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Temp and Relays", "1.0"); // Fetch the number of attached temperature sensors numSensors = sensors.getDeviceCount(); // Present all sensors to controller for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { gw.present(i, V_TEMP); } // Fetch relay status for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) gw.present(sensor, S_LIGHT); // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) digitalWrite(pin, gw.loadState(sensor)?RELAY_ON:RELAY_OFF); } } void loop() { // Process incoming messages (like config from server) gw.process(); // Fetch temperatures from Dallas sensors sensors.requestTemperatures(); // Read temperatures and send them to controller for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { // Fetch and round temperature to one decimal float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.; // Only send data if temperature has changed more then 1 degC and no error if (int(lastTemperature[i]) != int(temperature) && temperature != -127.00) { //added integer // Send in the new temperature gw.send(msg.setSensor(i).set(temperature,1)); lastTemperature[i]=temperature; } } //gw.sleep(SLEEP_TIME); //no sleep for relays!!!! } void incomingMessage(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { // Change relay state digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF); // Store state in eeprom gw.saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }
  • CC3000 and ethernet/MQTT gateway

    Hardware ethernet mqtt gateway cc3000
    2
    0 Votes
    2 Posts
    2k Views
    F
    @bomber Did you find a way to use CC3000 as gateway?
  • WizNet5100 ethernet module chip temperature

    Troubleshooting w5100 mqtt
    6
    0 Votes
    6 Posts
    3k Views
    M
    I use a cheap Chinese 5100 module together with the MQTT gateway and it is warm but have not measured any actual temperature. Works 24 hours a day (now for a couple of months). Most problems have been due to the MQTT code implementation itself . But for most "simple" sensors it runs OK with Openhab.
  • 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
  • 0 Votes
    17 Posts
    11k Views
    gaduG
    @TommySharp Hmm dont really remember, but I think this was the solution https://github.com/knolleary/pubsubclient/issues/46

23

Online

11.7k

Users

11.2k

Topics

113.1k

Posts