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!
  • Radio Traffic LEDs - Lights up on heart beat...

    12
    0 Votes
    12 Posts
    2k Views
    YveauxY
    @strixx yes
  • MY_SECURITY_SIMPLE_PASSWD

    6
    0 Votes
    6 Posts
    1k Views
    AnticimexA
    @strixx you are welcome. The simple flag is designed to be as simple as can be. So it enables everything. On development it is slightly refactor ed, so it is possible to use simple signing, simple encryption or simple "both" (which if I recall is named SIMPLE_SECURITY_PASSWD or similar.
  • Non-encrypted repeater in a secure network?

    4
    0 Votes
    4 Posts
    805 Views
    AnticimexA
    Signing allow this. Encryption is for everyone. With signing and "weak security" on the GW, you can selectively have nodes that require it. GW will then only require signed messages from the nodes that themsleves require it. Everyone have to have encryption though, or you need to disable encryption.
  • Door sensor make USB disconnect while reading serial output?

    19
    0 Votes
    19 Posts
    2k Views
    G
    Hey, Just for information: I solved all my problem ny soldering. Don't know if this is the breadboard or the Dupont wire jumpers, but with wires soldered, everything is working now :)
  • Turning off/dimming backlight on LCD without I2C interface

    4
    0 Votes
    4 Posts
    621 Views
    M
    @gohan I just tried that and answered my own question (it worked). Thanks for the pointer.
  • esp8266 for wired solutions

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    @kduino I think you need to define MY_RS485_SWSERIAL as well
  • 4 Votes
    10 Posts
    3k Views
    mfalkviddM
    Update: LTO is enabled by default for avr core/board version 1.6.12 and newer.
  • [SOLVED] NRF24 can not sleep

    10
    0 Votes
    10 Posts
    2k Views
    P
    @maghac Im using mastech MY65 and I can measure ~0.1uA minimal current with some error
  • MQTT Gateway Network On Demand

    14
    0 Votes
    14 Posts
    2k Views
    gohanG
    if you have line of sight to it, you could technically do it.
  • Arduino sketch, How to specify Timeout Mysensor initailisation

    4
    0 Votes
    4 Posts
    776 Views
    mfalkviddM
    @benbidouille great. Thanks for reporting back.
  • [SOLVED] Serial to MQTT conversion by Node-red

    3
    0 Votes
    3 Posts
    2k Views
    P
    Lol. I just forgot to change the topic in my code from "MySensors" to "domoticz/out/MyMQTT" Now working fine
  • sleep() in MySensors 2.2.0

    5
    0 Votes
    5 Posts
    865 Views
    alexsh1A
    @yveaux thank you!
  • Consumption & idle Loop

    14
    0 Votes
    14 Posts
    2k Views
    R
    Hi Yveaux, many thanks for your effort to my case. I didn't knew that after a wakeup, nrf24 is in stby before the next restart loop. Indeed, I tried a new sketch and confirm this particularity. So, a workaround should be to put a "sleep()" at start of the "loop" void loop() { // => At this point NRF is in RX mode sleep(xxx ms); // Put NRF24 in stby // ****** // // All job here without NRF consumption !! // // ***** } // End of loop I will do something like that !! Maybe, a new definition should be interresting, like MY_NRF24_RXMODE_DISABLED I'm sure many nodes never need the RX mode. PS: Hum.. !! I didn't tried if after the send command, NRF24 come back in RX mode or not.
  • PlatformIO subcategory

    1
    6 Votes
    1 Posts
    585 Views
    No one has replied
  • smartSleep possible bug and/or missing documentation (2.2.0)

    3
    0 Votes
    3 Posts
    727 Views
    mfalkviddM
    The internal commands can be found at https://github.com/mysensors/MySensors/blob/development/core/MyMessage.h#L165 We should probably update the api page.
  • Secure node encrypted communication. AES-128

    domoticz security lock
    1
    2
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Which sensor type for district heating meter (Kamstrup 66)

    3
    0 Votes
    3 Posts
    720 Views
    M
    Thanks @mfalkvidd Yes, I have been down that route as well - stitching my meter together from other sensors already known by mysensors. I had a look at eg S_WIND, where the sensors can have 3 values, with one of them even in a completely different domain (V_DIRECTION) So ideally mysensors supported my energy meter as a "thing" with the relevant set of parameters. Question is if I should add a custom type to mysensors myself, does it support "local" additions? What would be the "correct" way to do it? Soon I might have all kinds of sensors which has never been in the scope of mysensors, and probably should never be either, like meals served in the canteen, cars in the parking lot and so on. mysensors appears to have some really cool communication implemented, I can just not fit into the types defined. I have found that simply setting type using something like msg.setType(99); give me full control, but it is of-course just another hack.
  • Integration of pinChange INT

    5
    0 Votes
    5 Posts
    843 Views
    gohanG
    for a water detect event you can use the motion or door sensor example
  • Battery percentage on door contact sensor erratic (sent on interrupt)

    20
    0 Votes
    20 Posts
    2k Views
    BulldogLowellB
    As the analog pins share a single A2D, rapid use of it can cause the previous read to impact the next. A common workaround in this situation is to read twice on each input, ignoring the first. try that: // read analog pin (void) analogRead(BATTERY_SENSE_PIN); int sensorValue = analogRead(BATTERY_SENSE_PIN); // calculate battery voltage float vBat = static_cast<float>(sensorValue * (V_MAX/1023));
  • Async sensor Libraries (SI7021, APDS-9306)

    3
    5 Votes
    3 Posts
    1k Views
    alexsh1A
    @scalz You could share your code too :relaxed:

11

Online

11.7k

Users

11.2k

Topics

113.0k

Posts