Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
D

doctor64

@doctor64
About
Posts
27
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • openHAB 2.2 binding
    D doctor64

    @timo Looks like new binding no more support reporting of battery voltage from sensors, or I missed something?

    OpenHAB

  • openHAB 2.0 binding
    D doctor64

    @andreacioni All mySensors item defined using auto-discovery, so no things file in configuration. I'm think you mean this file? 0_1506175698221_org.eclipse.smarthome.core.thing.Thing.json

    OpenHAB

  • openHAB 2.0 binding
    D doctor64

    @TimO just updated to version 2.2.0.201708090807 of binding and get exception in network check

    22:41:33.015 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    22:41:33.029 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;2;2.1.1
    22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Network sanity check: PASSED
    22:41:36.015 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Sending I_HEARTBEAT_REQUESTs
    22:41:36.016 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;255;3;0;18;
    22:41:36.032 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 0;255;3;0;22;436674305
    22:41:36.116 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 1;255;3;0;18;
    22:41:36.217 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 2;255;3;0;18;
    22:41:36.317 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 3;255;3;0;18;
    22:41:36.398 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 3;255;3;0;22;717683
    22:41:36.418 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 4;255;3;0;18;
    22:41:36.518 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 5;255;3;0;18;
    22:41:36.619 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 6;255;3;0;18;
    22:41:36.652 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 5;255;3;0;22;9428217
    22:41:36.683 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 6;255;3;0;22;3111897
    22:41:39.016 [DEBUG] [ateway.MySensorsNetworkSanityChecker] - Node 1 request heartbreat answer, missing null of 10
    22:41:39.016 [ERROR] [ateway.MySensorsNetworkSanityChecker] - Exception in network sanity thread checker
    java.lang.NullPointerException
    	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.checkHeartbeatsResponse(MySensorsNetworkSanityChecker.java:178)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
    	at org.openhab.binding.mysensors.internal.gateway.MySensorsNetworkSanityChecker.run(MySensorsNetworkSanityChecker.java:122)[195:org.openhab.binding.mysensors:2.2.0.201708090807]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_144]
    	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_144]
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_144]
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_144]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_144]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_144]
    	at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
    
    
    OpenHAB

  • IKEA Varv lamp and MySensors
    D doctor64

    Hmm, for some reason link to code does not working, so, if anybody interested, here on github:
    link text

    My Project

  • How to build an overridable MySensors relay based device (e.g. lamp with manual switch)
    D doctor64

    @anonymouslemming Hmm, you wish to use existing switch on mains cord? Or have some socket block with control is enough? I have use old one-for-all remote-controller socket for that - it have button, place for LED, nice case and i put inside arduino pro mini and 5 volt supply, using existing relay.
    alt text

    You are from Great Britain, right? So you have different power socket, but, may be you can find something similar?

    Hardware

  • How to build an overridable MySensors relay based device (e.g. lamp with manual switch)
    D doctor64

    @anonymouslemming Sorry for self-advertising, but i'm think my project https://forum.mysensors.org/topic/7417/ikea-varv-lamp-and-mysensors exactly what you wish - lamp with local control and, of course, OpenHab status automatically updated on flick a switch.

    Hardware

  • IKEA Varv lamp and MySensors
    D doctor64

    Hello!
    Let me introduce simple project - MySensors control for IKEA Varv lamp. http://www.ikea.com/us/en/catalog/products/70280709/
    Used hardware:

    • Arduino Pro Mini 5v
    • nrf24L01+ module
    • solid state relay https://www.aliexpress.com/item/5v-1-Channel-OMRON-SSR-G3MB-202P-Solid-State-Relay-Module/32545508200.html
    • 5V to 3.3V converter based on LM1117 https://www.aliexpress.com/item/LM1117-AMS1117-4-5-7V-turn-3-3V-DC-DC-Step-down-Power-Supply-Module-For/32588261370.html
    • piece of prototype board, wires, etc

    Disassemble lamp: remove shade, disassemble bulb holder to get access to switch and wiring, remove cover from base (note four screws hidden under rubber pads)
    0_1504117110134_20170826_141344.jpg
    and get access to internals
    0_1504117769624_20170826_141515.jpg
    Remove mains wires from switch, connect it directly to lamp bulb holder, connect additional wires to switch to use it wits MySensors and route new wires throw pipe stand to bottom part
    0_1504117864798_20170826_195636.jpg
    Open cover of usb charger (be careful and do not damage the board)
    0_1504117979585_20170826_162900.jpg
    solder wires for powering arduino to usb ground and +5v

    Connection between nrf24L01+ and arduino pretty standard, i use piece of prototyping board to hold radio module and voltage converter together. This sub-assembly and arduino pro mini fits perfectly into base of lamp, just cut a little for wires pass freely.
    0_1504118652007_20170827_001716-1.jpg
    Relay module little modified to fit into lamp base - relay de-soldered, pins bend to 90 degree and relay soldered from other side of board, terminals for control signals replaced with pin connectors.
    0_1504118812401_20170827_001734.jpg
    Relay connected to arduino pin 3, switch to pin 4 .
    Because this project should have a wife compatibility mode :) switch was used not as on/off switch, but as a trigger, lamp switch state on switch change, not on switch position.

    Comments and suggestion is welkomed, and sorry for my not-so-good English.

    Successfully used over a week in my home, using OpenHab2 and ethernet gateway.
    Code, if somebody interest, here
    0_1504119175102_IkeaLamp.ino

    My Project

  • openHAB 2.0 binding
    D doctor64

    @rob I have similar problems caused by unstable radio link. Long debug and playing with position of gateway and sensors in apartment, radio channel, etc resolved it, but it can be very frustrating. I recommend from my experience try to reduce distance between gateway and sensor and use MYScontroller as debug tool. Once you have stable sensor network openhab plugin start working like a charm.

    As far as I understand, mysensor and openhab plugin works like this (timo, correct me if I wrong)
    1: sensor establish link to gateway.
    2: sensor request node ID from gateway.
    3: plugin generate node ID and send it via gateway to sensor
    4: if sensor with nodeID not defined aready in plugin config, sensor added to detected inbox

    Looks like your setup stopped somewhere on step 3, but as check I recommend use myscontroller as independent verification

    OpenHAB

  • openHAB 2.0 binding
    D doctor64

    @rob
    As I see from log, gateway unable to send to sensor 5 response to find parent
    2017-07-05 12:56:14.193 [DEBUG] [rsAbstractConnection$MySensorsReader] - 0;255;3;0;9;205371 !TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0

    I recommend to debug your radio link, may be using MYSController

    OpenHAB

  • openHAB 2.0 binding
    D doctor64

    Hello @TimO !
    I delete all things and items (btw, seems like items not deleted completely, and re-apperas after item re-create), create things again and not see error anymore. Some black magic in action, looks like.
    I will create separate topic if this issue appears again. Thank you!

    OpenHAB

  • openHAB 2.0 binding
    D doctor64

    Hello!
    I just started to play with OpenHab2 and new binding? thank you for great work.
    But, i discover some strange behavior:
    Openhab2, ethernet gateway, 3 mysensor nodes, all nodes sucessfully detected and configured in PaperUI, but some data looks like not updated. Looking to log i note some suspicious lines like:

    00:28:47.077 [DEBUG] [rsAbstractConnection$MySensorsReader] - 3;1;1;0;0;24.6
    00:28:47.078 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 3 found in gateway
    00:28:47.078 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 1 found in node 3
    00:28:47.078 [WARN ] [rs.internal.gateway.MySensorsGateway] - Variable 0 not present
    

    Sorry, i don't know how to dump OpenHab configuration, but item configured.
    Any suggestions?

    OpenHAB

  • Just starting out have a question
    D doctor64

    @Chaotic I can answer second question - you can power radio from on-board 3.3V regulator from Uno or Leonardo. I use this setup without any problems.
    First question - not complete understand it. If you manage assign node ID to sensor (using gateway or manually edit EEPROM) - sensor node can operate without controller/gateway

    General Discussion gateway newbie

  • Arduino Leonardo serial port and MySensors sleep
    D doctor64

    @hek Accordingly to LowPower library documentation, library support Atmega32U4 processor, so should work on Leonardo.
    Look's like i need to investigate deeper.

    Troubleshooting sleep leonardo

  • Arduino Leonardo serial port and MySensors sleep
    D doctor64

    @doctor64
    Just note if anybody try to test: after the bug it is unable to upload new sketches until reset - disconnect your Leonardo from USB, close Arduino GUI, reconnect Leonardo and start Arduino GUI

    Troubleshooting sleep leonardo

  • Arduino Leonardo serial port and MySensors sleep
    D doctor64

    Hello!

    I try to use Leonardo for my sensor development and encounter strange problem:
    Sensor successfully initialized, perform first loop, and after entering sleep() never come back, TX LED on Leonardo constantly lights.
    Anybody have an idea? Replacing sleep() with delay() solves the problem, but i fear what sensor can lost packets from gateway during sleep.

    Arduino 1.6.0, MySensors library 1.4.1
    demo code
    https://codebender.cc/sketch:87221

    Sketch log:
    Starting
    sensor started, id 105
    send: 105-105-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
    send: 105-105-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    into sleep

    Troubleshooting sleep leonardo

  • Humidity controlled bathroom dryer during and after showering or sauna
    D doctor64

    @samppa Sorry, i am not familiar with Vera and PLEG. As last resort, you can use OpenHab with Vera - i'm think Vera is ZWave controller?

    My Project humidity

  • Controlling 12v Signal with Proximity Sensor
    D doctor64

    @PedroC88 Sorry, i not completely understand your requirements. Do you want a sensor which generate signal when somebody walk near the car? You can look at PIR sensors, but i am not sure can they work outside a building.

    General Discussion proximity bluetooth

  • Humidity controlled bathroom dryer during and after showering or sauna
    D doctor64

    @samppa Seems like high humidity in bathroom is a common problem, because i also plan to implement exactly this thing.
    But, because i can't pump fresh air from outside, i live in multi apartment building, so i pump humid air from bathroom into existing ventilation system.
    I think about just add second sensor to same node and check humidity in corridor, or may be use "dumb" node, there all calculations and decision about turning on/off the fan made at controller, OpenHab in my case. So i can take into account time of day, for example - i don't want to hear noise from the fan in the middle of night.

    My Project humidity

  • Humidity controlled bathroom dryer during and after showering or sauna
    D doctor64

    @samppa There is a article (in Russian, unfortunately) where solved almost exactly this problem. (Ventilation of garage)
    http://habrahabr.ru/post/244135/
    If you wish i can try to translate, but basic idea of algorithm is to calculate absolute humidity for inside and outside, compare and turn ventilation if inside absolutely humidity bigger than outside with threshold 0.01 gram/m3. Also, if outside relative humidity is large than 90% ventilation does not performed, because it happen in very unusual case, like heavy rain outside, and ventilation in this case is pointless.

    My Project humidity

  • Issues since upgrading to v1.4.1
    D doctor64

    @hek I can confirm what MQTT gateway working good (with some troubles, but none too seriously) on version 1.4.1 using SOFT_SPI and Wiznet W5100 module (common Ethernet shield).

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular