Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. MagnusF
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by MagnusF

    • RE: OH3 Serial Gateway Problem

      Hello,
      This work for me on OH3.2.

      @vores8 said in https://forum.mysensors.org/post/110626:
      i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration

      So far, so good - working with the latest OH 3.1.0

      please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: Never been able to get MySensors to work

      At first I'm no expert of MySensors or openHAB.
      Perhaps I had luck but got the connection between MySensors and OH to work from
      the beginning with only minor problems. The system has now been working for almost 2 years and I did it this way.
      OH is installed on a RPi 3B, have a serial gateway on an Arduino Nano with nrf24L01 pa+lna the nodes (5 pcs) are built on Arduino pro mini.
      The nodes are 3 Door/Window sensors, one relay and one tempereture/humidity sensor.
      Since the gateway is placed in the basement and the nodes are on first floor one of the nodes is using nrf24L01 pa+lna and the other nrf24L01+.
      The nrf24L01+ are chines and I bought about 15 of them and tested them at a distance of 12m through 2 wooden walls and have to scrap 3 of them.
      The gateway and nodes have all standard sketches according to MySensors examples with minor changes. All nodes have fixed node_id.
      Installation:
      Downloaded "openHABianPi" SD card image file.
      Wrote the image to a SD card and put it in the RPi.
      Started the RPi and after some minutes OH was up and running.
      Complete insructions can be found at https://www.openhab.org/v2.4/docs/installation/openhabian.html.
      Connected the gateway to OH via a USB cable.
      Went to MySensors/Controller/openHAB and followed the "Install instructions" at https://github.com/tobof/openhab2-addons/wiki.
      Used Paper UI to configure the thing "MySensors serial gateway" and not .things file.
      Now the nodes (things) pop up in the Inbox. Don't remember if I had to restart the RPi, gateway and nodes.
      I hope this can help someone.

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: Door battery status

      @masmat No it's not necessary to put the "Contact" in a sitemap, your arduino shall send boolean (0/1).

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: 💬 Battery Powered Sensors

      @gohan Thanks for your reply, you can show me how the code should look.

      posted in Announcements
      MagnusF
      MagnusF
    • RE: 💬 Battery Powered Sensors

      I am a newbie and have some thoughts about the battery level that I did not find in this forum.
      The 8MHz 3.3V Arduino Pro Mini can handle down to roughly 2.8V.
      If I have understood the calculations in the sketch correctly then the analog value of A0 is 1023 at 3.44V and 0 at 0V.
      This means that at 2.8V the value is about 830 = 83% and under this, the Arduino stops working. Is this right?
      If this is correct, I wonder if someone has changed the calculation in the sketch so that the battery percentage becomes 0 at 2.8V?
      This would mean that the battery percentage becomes a more real value on the battery level.

      posted in Announcements
      MagnusF
      MagnusF
    • RE: Battery Door switch without debounce

      @Yveaux Thanks, it helped me.

      posted in General Discussion
      MagnusF
      MagnusF
    • Battery Door switch without debounce

      I have a battery operated node with a door switch using sleep and no debouncer.
      The node seem to work well but I have some thoughts about reliably in my sketch.
      The first 2 lines in the "void loop()" is:
      wait(50); // Short delay to allow switch to properly settle
      value = digitalRead(BUTTON_PIN);
      and the last is:
      sleep(digitalPinToInterrupt(BUTTON_PIN), CHANGE, SLEEP_TIME);.
      As I have understand, when the door e.g. is opened during sleep time the arduino wakes up and starts the loop from the beginning, is this correct?
      If so, will "wait (50)" prevent "bouncing"?

      posted in General Discussion
      MagnusF
      MagnusF
    • RE: Raspberry Pi SD Card wear out?

      Perhaps not the best solution but easy for a beginner.
      It's possible to use "Win32 Disk Imager" to make an image of the a RPi SD card and save on e.g. Windows PC. Explained here: https://computers.tutsplus.com/articles/how-to-clone-your-raspberry-pi-sd-cards-with-windows--mac-59294
      If you make an image, e.g. after changes in openHAB or at selected times, can't this be used to restore the system?
      I'm aware of that data colected since the last made image will be lost and the system is down during the process.

      posted in Hardware
      MagnusF
      MagnusF
    • RE: Moisture sensor value unit

      @dbemowsk I'm have just started with mysensors and have configured a soil moisture sensor together with openHAB.
      To get it to work I used the sketch for soil moisture but present the child as S_HUM and send the reading as V_HUM.

      posted in Vera
      MagnusF
      MagnusF
    • RE: Door battery status

      @rozpruwacz Thanks!

      That it could be that simple! 😳 Did not see the connection between sending the battery status in the sketch and the thing in openhab.

      posted in OpenHAB
      MagnusF
      MagnusF
    • Door battery status

      I started a few months ago with MySensor and openhab and have now configured a node with a door contact. I'm using a serial gateway connected to a RPi with openhab. The node is registered as Door in openhab and works with the door Open / Closed. The node is powered by battery so I want to report battery status but do not know how to get this to openhab. Have searched the forum but have not found anything.

      The Thing Door has in openhab 4 channels:
      Tripped Status, mysensors:door 709db93f:door_3_1:tripped, Contact
      Armed Status, mysensors:door 709db93f:door_3_1:armed, Switch
      Battery Level, mysensors:door 709db93f:door_3_1:battery, Number
      Last Update, mysensors:door 709db93f:door_3_1:lastupdate, DateTime

      All the channels have the same node id (3) and child id (1) so how shall I send the battey value from the sketch to the channel "Battery Level"?

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: Problem to program pro mini

      @sundberg84
      I read in another topic your reference to https://www.arduino.cc/en/Tutorial/ArduinoISP on how to burn a bootloader.
      Is this an opportunity to get the wrong card to work?
      Do you know if the capacitor mentioned in the reference is needed for a Pro Mini?

      posted in Troubleshooting
      MagnusF
      MagnusF
    • RE: Problem to program pro mini

      I have programmed 3 more boards with the first settings and it worked well.
      What I understood, only the choice of programmers is used when burning bootloaders, is this correct?

      posted in Troubleshooting
      MagnusF
      MagnusF
    • RE: Problem to program pro mini

      The problem is partially resolved, the first Pro mini is wrong in any way.
      Tried another Pro mini and it worked.
      Before I switched the minis, I searched the Arduino forum and found this topic on how to test a serial adapter and according to this test the FTDI adapter was ok.
      https://forum.arduino.cc/index.php?topic=73748.0

      After switching to Ide 1.8.3 and even when I switch back to 1.8.0 and I choose sketch, include library, manage library I get the following error message:
      Index error: could not find referenced tool name=gcc-arm-none-eabi version=5_2-2015q4 packager=sandeepmistry
      Index error: could not find referenced tool name=openocd version=0.10.0-dev.nrf5 packager=sandeepmistry

      Is there something to care about?

      posted in Troubleshooting
      MagnusF
      MagnusF
    • RE: Problem to program pro mini

      I have updated ide to 1.8.3 but the result is the same. Find no way to update boards difinations.
      I missed one row in the error message which I think is important:
      "avrdude: stk500_recv(): programmer is not responding"

      posted in Troubleshooting
      MagnusF
      MagnusF
    • Problem to program pro mini

      I have purchased some pro mini 5V and an USB to TTL programmer, from china.
      I have connect them occording to the following:
      Programmer Pro mini
      DTR>>>>>>>>>DTR
      TX>>>>>>>>>>RX
      RX>>>>>>>>>>TX
      VCC>>>>>>>>>VCC
      CTS>>>>>>>>>-
      GND>>>>>>>>>GND

      Arduino IDE 1.8.0
      Board: "Arduino pro or pro mini"
      Processor: "ATmega328 (5V 16MHz)"
      Port: "COM6"
      Programmer: "AVRISP mk II"

      When I try to upload the sketch "Blink" I got the following message:
      avrude: verification error, content mismatch
      0xff != 0x0c
      avrude: verification error, content mismatch
      avrude: verification error; content mismatch

      Anyone who can tell me what the error is?

      posted in Troubleshooting
      MagnusF
      MagnusF
    • RE: openHAB 2.2 binding

      @Feji
      Thanks for your replay! But unfortunately, that was not an answer to my thoughts.

      1. You say "This version..." Do you mean to use two "MySensors Serial Gateways" connected to one controller with OpenHAB?
        Does this mean that if I connect one more "MySensor Serial Gateway" to my controller that I will have one more "MySensor Serial Gateway" thing but with another bridge definition?
      2. In the file "org.eclipse.smarthome.core.thing.Thing.json" there are no things defined with i.e. nodeid="1" and childid="2" it looks like this
        "mysensors:temperature:709db93f:temperature_2_1" i.e. nodeid 2 childid 1. Do I look in the wrong file?
      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: openHAB 2.2 binding

      @TimO
      I'm new to MySensors and openHAB and this might be vary basic questions.
      As I only have start with a small system with openHAB on an RPi3, a serial gateway and 2 nodes so the update to openHAB 2.2 binding will probably not be a big deal.
      In the explanation of the changes, you write "The current release is not backwards compatible" and "I hope this won't happen again in further versions!". Does this mean that a new version is backward compatible with e.g. V2.1.0 or that I in anyway must do the reconfigurations now but don't have to do it again?
      I have configured my things in Paper UI and have to delete them but do I have to clean the *.items file and *.sitemap file? Further down in the "topic" you have a link to "https://github.com/tobof/openhab2-addons/issues/86" with a link to a new version of the binding and I wonder if this is the one I'm going to use?

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: 💬 MDMSGate

      @kalina I'm new to "MySensors" and I think this device will suits me very well. My plan is to use MQTT and Wi-Fi mode.
      Is this possible? To use Wi-Fi / Ethernet, as I understand, IP addresses for Gateway, router and controller must be defined but I have read that you in all modes is using the serial gateway sketch which not have IP adresses defined.
      I wonder if there is any other gateway sketch that shall be used or how to solve this?

      posted in OpenHardware.io
      MagnusF
      MagnusF
    • RE: Help make Openhab2 MQ2 AirQuality work

      Hi @Tommas
      A new try. In your definition of the item airq01 you have in the channel="mysensors:airquality..." written "q" in lowercase letter.
      When I look in MySensors Binding in Paper UI it is written with a capital "Q", "airQuality". I don't know if it matters.

      posted in OpenHAB
      MagnusF
      MagnusF
    • RE: Help make Openhab2 MQ2 AirQuality work

      Hey @Tommas
      What happens if you in the sitemap change "Defult item=airq01" to "Text item=airq01"

      posted in OpenHAB
      MagnusF
      MagnusF
    • MQTT or serial communication

      I'm a newbie and have just started a project to control things in my home.
      To learn, I have set up OH2 on a raspberry pi 3, using an Arduino nano as serial gateway and two nodes.
      Everything works well. Now I have read here in the forum about MQTT which many seem to use but not found when or why to use it.
      Hope anyone can explain the benefits of the two methods.
      Are there situations when MQTT has to be used?
      If using a MQTTgateway, as described in MS, do I have to have a MQTT Broker e.g. on a RPi?

      posted in General Discussion
      MagnusF
      MagnusF
    • nRF24L01+ mounted on a breadboard

      This tip may already be known.

      I have an Arduino uno and an breadbord to make tests of new projects but got tired
      of to have the radio "nRF24L01+" hanging loose in the wires.
      I then find that there was an adapter to the ESP8266-01, "WiFi Module", to be used
      on an breadboard. The pin configuration is wrong so I put a label on the adapter
      and numbered the pins in accordance with nRF24L01+, pic 1. I also have to desolder the
      capacitor on the adapter, pic 2, this could be of diiferent kinds and other places.
      And now the radio fits on the breadboard!
      0_1495647986001_Pic 1.jpg 0_1495648016031_Pic 2.jpg

      posted in General Discussion
      MagnusF
      MagnusF