Navigation

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

    Posts made by andredts

    • RE: New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)

      @Nca78 said in New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries 😉:

      @andredts said in New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries 😉:

      @Yveaux Thanks, that was exactly the insight I was looking, for my door sensor with 2aa battery, your way worked great. For a scene controller with a CR2032 a had to not send also decreases greater then 10%, but hey, 10 steps is more enough.

      For having consistent measurements with a CR2032 you should measure voltage as first action after waking up from sleep.
      I keep the value in a variable and process it after "action" message of the node.

      If possible, run at 1Mhz on internal oscillator so the power consumption of the atmega stays very low (around 1mA instead of 3 at 8MHz/3V).

      Hi, I do read the battery first thing after wake up, my problem was when a had various click too close together. It`s good now that I only send battery values that a 10% higher or lower than my last stored value. I will take a look on the 1Mhz bootloader. Thanks

      posted in Development
      andredts
      andredts
    • RE: New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)

      @Yveaux I know about that fluctuation, but for my use in a scene controller I would be happy just to know the battery is low. I have it running with a multi-button, were I have click, duble-click and click and hold, I only check battery at one click, because of its fluctuation, but if you use it more than 4 times e a short period that fluctuation is noted, and that is why a added to the 10% increase a 10% decrease gap on battery sent information. Thanks

      posted in Development
      andredts
      andredts
    • RE: New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)

      @Yveaux Thanks, that was exactly the insight I was looking, for my door sensor with 2aa battery, your way worked great. For a scene controller with a CR2032 a had to not send also decreases greater then 10%, but hey, 10 steps is more enough.

      posted in Development
      andredts
      andredts
    • RE: New library to read Arduino VCC supply level without resistors for battery powered sensor nodes that do not use a voltage regulator but connect directly to the batteries ;-)

      @Yveaux Hi, thanks for your work. Maybe I´m going over something that was covered before, but I need some help, I´m using this code in a door sensor with 2 aa battery, and reporting if battery changes, when the door opens or closes. My problem is that I always get diferent readings from close to open, so I´m always reporting battery level and using more power than needed. Thanks

      posted in Development
      andredts
      andredts
    • RE: Upgrading to 2.0 sketch dificulty

      @Boots33 Thanks, that was exactly what I needed. Synchronizing was a great bonus.

      posted in Troubleshooting
      andredts
      andredts
    • RE: Upgrading to 2.0 sketch dificulty

      @niccodemi

      Hi, I know that this is quite old topic, but only now I´m updating my home from version 1.5.4 to 2.*, most because reability issues. One thing I notice with you skecth is that if by any chance the gateway is not present the nodes can´t be used anymore after a power loss, I mean, one can not use the fisical buttons to switch the relays, because they will not respond. My question is if there is a way to keep the node up with out the gateway, in case it dies?

      Thanks

      posted in Troubleshooting
      andredts
      andredts
    • RE: OpenHab and RGB led strip

      @matt-shepherd Never got the time to do it. Sorry

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @bkl Hi,

      Use this biding from it`s beginning, many thanks again. Just want to know if there is any function like the "ack" as there is on OH2 binding, where gateway re-sends the msg 5 times if it does not hear from the sensor after a command. It´s a killer function to make it more reliable, but I´m not ready for OH2 yet.

      Thanks

      posted in OpenHAB
      andredts
      andredts
    • RE: OpenHab and RGB led strip

      @xefil

      Thanks, I got it working the way it is there, for the Domoticz, on my Openhab. Using 3 separated slides, but now I´m trying to use the color wheel to set the colors with Openhab as the controller.

      posted in OpenHAB
      andredts
      andredts
    • RE: OpenHab and RGB led strip

      @mortommy

      Thanks, It seems great, but I will only control it from OH side. Unfortunately no Ikea on my country. Having that control would be great. If I can´t find anything simpler I will try to adapt that.

      posted in OpenHAB
      andredts
      andredts
    • RE: OpenHab and RGB led strip

      @xefil

      Thanks, take all the time you need, Now I´m using the RGB-3D exemple, I can get it to work on Openhab with 3 separated dimmers. But I can´t get it to recall the values or to use the color wheel.

      posted in OpenHAB
      andredts
      andredts
    • RE: OpenHab and RGB led strip

      @Dave-Dan

      Hi, would you please share the code, arduino, item and rules. I use serial gateway, OH 1.8.3 with bidding.

      Thanks

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @Francois

      Hi, I use {mysensors="12;0;V_STATUS"}. Remember to give your node a ID, because OH does not give one.

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @Pavel-Hrudka

      On my last post I miss lid you, copping your own line, but actually to use raspberry internal serial you have to add to Openhab's start.sh "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " before the line with the ".jar" because the serial got to start before you run the biddings.

      Hope it helps.

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @Pavel-Hrudka

      I use RP2 with internal serial connected directly to ATmega328 chip. So it is also a unconventional serial. And for that to work I had to put the line " -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway" on my start.sh file, before the line that has ".jar"

      Hope it helps

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @andredts
      Using this bidding for 15 days, with 3 relay, a Micro Sensebender, Humidity, Motion and Water level (base on dust sensor). And everything is working great.

      Thanks again.

      posted in OpenHAB
      andredts
      andredts
    • RE: Sensebender Micro as gateway on raspberry pi

      @Stric
      Good to know! I don't have this kind of problem because I use a Atmega328 with external 16MHz clock. The Sensebender Micro uses internal clock and run as low as 1MHz, so there is your problem.

      posted in Development
      andredts
      andredts
    • RE: openHAB binding

      @bkl
      Thank you for your great work. Happy to help with what I can.

      Already tested and fully abandoned rules for setting up OpenHab with Mysensors.

      Next I will try a analogic read, based on the dust sensor.

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      Hi,

      Today I was testing Motion and Door sensors. Motion worked as expected, but the door sensor only works if it's set in OH as a "switch" item(on and off feedback), if you set it as a "contact"(open/closed) item you get the log: " No item configured for "5;1;V_TRIPPED". I have used the example sketch for the sensor

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @bkl
      Working beautifully. I have three relay and three switches on the arduino, and no matter how fast I press them I got no miss command. Thanks

      I got one bug, but I think it is Openhab's, when I changed the item file with Openhab running and the switch in the user interface got inverted ON-OFF and OFF-ON.

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @bkl
      Thanks, I will give it a try and return to you with feedback.

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @bkl
      Hi, I´m using the MultiRelayButton 0.9b sketch, that I found here in the forum:

      0_1456141716367_Bot_es_relays.ino

      If you like I can try RelayWithButtonActuator Example, but I like the other better because it works when the server is down, no aka from server to make the state change.

      posted in OpenHAB
      andredts
      andredts
    • RE: Sensebender Micro as gateway on raspberry pi

      @gloob

      I use it, but with one ATmega connected internally. If you have everything connected correctly, TX to RX and RX to TX, maybe you need to add the port /dev/ttyAMA0 to your controller.
      I use Openhab, and for this one, you have to add "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " on start.sh before the line with ".jar".

      posted in Development
      andredts
      andredts
    • RE: openHAB binding

      @andredts said:

      @bkl Great work, much better than using rules. For me it worked on the first try. I will be very happy to test what I can.

      Just one question, can we only read sensors, or can we interact, as in a relay switch? I tried to use V_LIGHT to add a light switch and got this log "Binding configuration of type 'mysensors' of item ‘Relay‘ could not be parsed correctly.
      org.openhab.model.item.binding.BindingConfigParseException: Invalid Type: V_LIGHT"

      Thanks

      Hi, made some more test, and saw that bidding suggests that I use V_STATUS, so I did. Now I can see the change in the relay status and I can even turn it OFF by the OH inteface, but I can´t turn it ON. Maybe I can´t turn it on because I use inverted logic, where High is OFF, does any off that makes sense?

      Thanks

      posted in OpenHAB
      andredts
      andredts
    • RE: openHAB binding

      @bkl Great work, much better than using rules. For me it worked on the first try. I will be very happy to test what I can.

      Just one question, can we only read sensors, or can we interact, as in a relay switch? I tried to use V_LIGHT to add a light switch and got this log "Binding configuration of type 'mysensors' of item ‘Relay‘ could not be parsed correctly.
      org.openhab.model.item.binding.BindingConfigParseException: Invalid Type: V_LIGHT"

      Thanks

      posted in OpenHAB
      andredts
      andredts
    • RE: Openhab serial gateway and mysensors device discovery - tutorial

      @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.

      posted in OpenHAB
      andredts
      andredts
    • RE: Openhab serial gateway and mysensors device discovery - tutorial

      @l154 said:

      HashMap

      Hi, your tutorial is amazing, and just what I was looking for, but I´m very new to it, so I´m not sure what I have to do on the start of it. The creation of the names and the HashMap is something that we have to do also or just part of the line of thought? If it´s something we have to do, where do we start? I have my OH on a raspberry PI and know how to use it.

      posted in OpenHAB
      andredts
      andredts