Skip to content

Development

Discuss Arduino programming, library tips, share example sketches and post your general programming questions.
1.5k Topics 13.5k Posts

Subcategories


  • 56 578
    56 Topics
    578 Posts
    HJ_SKH
    Hi2All! Surprising is here. After about 24hours I refresh HA and suddenly my motion sensor was integrated. There is also second entity > battery : 0 , have to look deeper into that for understanding. Need to change little in the sketch, because don't want every short time 'no movement' so only when there is motion and maybe once a hour indication sensor is alive. Meantime I found 3 other good threats: https://forum.mysensors.org/topic/11200/finally-progress-evidence-based-radio-testing-method-and-capacitors https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules/27 https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain Very usefull for me also finally progress because of lacking time in the past. Great jobs are done here! Thanks for this all of you guys or girls!
  • question about repeater node

    10
    0 Votes
    10 Posts
    4k Views
    R
    @sundberg84 thank you my friend <3
  • Method to OTA a sleeping node

    6
    2 Votes
    6 Posts
    2k Views
    martinhjelmareM
    Home assistant also supports smartsleep.
  • Forward GW error messages

    1
    0 Votes
    1 Posts
    608 Views
    No one has replied
  • Help to send string as payload

    5
    0 Votes
    5 Posts
    1k Views
    Christian RogneC
    I have tried different things, the thing I have changed, is the type of value who would be send from the sensor. The default : send(msg.setSensor(i).set(temperature,1)); gives me the following error in Control 4 : number 1 string UPDATE parent 26 room 1 subcategory 0 [string "Lua Code"]:120: bad argument #1 to 'SetVariable' (strValue should be a string) (ReceivedFromProxy) altid 5;0 id 40 temperature 23.5 I tried to add the lines : char charVal[6]; //temporarily holds data from vals dtostrf(temperature,6,1,charVal); and changed the send to : send(msg.setSensor(i).set(charVal)); But the same happens If I cast the temperature to int I got the it, but without decimals If I try with : String string = "24,8"; send(msg.setSensor(i).set(string)); No error in Control4, but the sent temperature is 1
  • BBQ Temp Controller - Any Interest?

    11
    1 Votes
    11 Posts
    4k Views
    Mark SwiftM
    I've been using 'Heatermeter' for years, it's awesome!
  • Power up a backup Gateway node

    4
    0 Votes
    4 Posts
    1k Views
    CrankyCoderC
    That I am not 100% sure of. I would guess yes, but would think minimal. I would think the more troublesome area would be on the monitoring node, simulating a message to mysensors.
  • Lots of repeater nodes

    2
    0 Votes
    2 Posts
    1k Views
    clempatC
    I was doing that once but in my case it was not the best solution. I have some nodes on battery and so they don't ask for ack. I would need confirmation but I think that if my repeater is not reliable (far from gateway or somewhere with bad reception) It could add some loss on the communications from final node to gateway. I try so to test different place using this: https://forum.mysensors.org/topic/3984/nrf24l01-connection-quality-meter to place strategically my repeater.
  • This topic is deleted!

    3
    0 Votes
    3 Posts
    169 Views
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    81 Views
    No one has replied
  • Juggling different MySensor versions?

    18
    0 Votes
    18 Posts
    5k Views
    mfalkviddM
    I haven't tried yet, but I've been thinking about having two installations of the Arduino IDE. One for each MySensors version.
  • MySensors Fancy porchlight

    6
    3 Votes
    6 Posts
    2k Views
    AWIA
    types.
  • Anyone tried compiler optimisations?

    5
    0 Votes
    5 Posts
    1k Views
    Martin TellblomM
    @Nca78 I can also combine with another MySensors Arduino mini for the rain metering. The problem I have is that the forcast is taking up alot of memory (and I don't know right now if I going to need that
  • Question: sanitycheck and transportSwitchSM

    1
    0 Votes
    1 Posts
    535 Views
    No one has replied
  • MQTT Client using MySensors Serial Gateway

    5
    3 Votes
    5 Posts
    3k Views
    X
    Seems to work well! I'll test it a little bit :-)
  • Check if the value changed since last time

    6
    0 Votes
    6 Posts
    1k Views
    TheoLT
    I think that @Yveaux refers to my generic threshold library (github). It really makes it easy to add sensors and reporting their values to the gateway.
  • How to add Sensebender Micro to IDE boards list?

    micro sensebender ide
    4
    0 Votes
    4 Posts
    2k Views
    GizMoCuzG
    +1, thanks, was looking for this as well
  • Raspberry Pi Ethernet Gateway

    20
    0 Votes
    20 Posts
    16k Views
    172pilot1
    @GertSanders Yep.. misunderstood.., I thought you were basically saying "why would you use a pi instead of an arduino when the arduino uses less power, etc..." :-)
  • Connect sensors directly to the Gateway (again)

    gateway sensor development
    22
    0 Votes
    22 Posts
    15k Views
    hekH
    @Tmaster You give each sensor a child id (0-254) in the node.
  • Tool for static analysis of memory usage

    8
    1 Votes
    8 Posts
    3k Views
    TheoLT
    @mfalkvidd lots of ram is what we like. In case you're interested. This is a good i2c slave http://jamesreubenknowles.com/arduino-i2c-1680 tutorial and this is a great explanation of the i2c protocol https://www.youtube.com/watch?v=6IAkYpmA1DQ
  • Resend if communication fail

    4
    0 Votes
    4 Posts
    1k Views
    hekH
    Yes, but only if there is one hop between your node and the gateway. If you have a repeater in between, you'll have to ask for ack and do resent if the ack-message hasn't arrived after some timeout.

7

Online

11.7k

Users

11.2k

Topics

113.1k

Posts