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!
  • Can one child-sensor-id have multiple values

    sensorid
    8
    0 Votes
    8 Posts
    3k Views
    YveauxY
    @daulagari said: that makes sense although not from an user perspective Of coarse not. I just wanted to sketch the idea behind it.
  • Rounding sensor values

    5
    0 Votes
    5 Posts
    2k Views
    Dan S.D
    OK another try: here's the rounding (up) function, to be placed after the loop function in the sketch: int Ceiling(int input, int ceilTo) //input is the integer number to be rounded //ceilTo is the desired rounding (up) value { if ((input % ceilTo) != 0) { return ((int)(input / ceilTo) * ceilTo) + ceilTo; } else { return (input); } } After the sensor input is read in the sketch, e.g. light level, insert the line lightLevel = Ceiling(lightLevel,10); Rounds all light level values upwards to the nearest 10. Depending on your rounding value, this will reduce the number of times the sensor sends an update to the gateway since updates are only sent when the value is different from the one previously sent.
  • Can the Gateway Broadcast?

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    No there isn't any easy way to broadcast to the entire radio network. The problem is to send messages to nodes that requires a repeater-node in between to be reached.
  • Waterheater control

    water heater sw
    7
    1 Votes
    7 Posts
    3k Views
    idefixI
    Thanks, I was thinking of using a photo resistor as well but I think the LED does not shine through the board. Will give this another try on the weekend. As for the send info to gw code i used, any comments? Is it correct in the first place? Thanks
  • Battery Level and Step Up Power Converter

    4
    0 Votes
    4 Posts
    2k Views
    RJ_MakeR
    @marceltrapman Good question, one in which I have no answer. My sensors typically return ~75% for 2 fully charged AA batteries.
  • plugin RelayActuatorWithButton

    9
    0 Votes
    9 Posts
    2k Views
    H
    has no way to resolve this delay???
  • Hooking into Ethernet gateway.

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    @AtomicGrog said: Cross fingers that the latter releases open up the API (A lot...). Yeah, it's a pity they don't open up their API a bit more. The problem is that it won't allow you to keep an outgoing socket open all the time. Also no way of pragmatically create devices (the last time I looked). One solution could be to have the gateway "ping" a HC2 device when a message is available over http-api. The device then open the socket to receive the message from gateway. Hackish .. yeah I know. Yes, the protocol is the same over an ethernet socket.
  • HELP NEEDED AH!

    help
    4
    0 Votes
    4 Posts
    2k Views
    hekH
    @AbeAbeAbe Not a good way to gain attention. You might just piss people off. Ok, so how about using a motion sensor (pir), link barrier or a distance sensor?
  • 123D Circuits

    circuit pcb layout fritzing
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Do I need RFXtrx433E from rfxcom?

    rfxcom nexa rfx
    8
    0 Votes
    8 Posts
    8k Views
    epierreE
    IS there other protocols that HomeEasy supported (thinking about Chacoon which is more widely distributed...)
  • Internal I_REBOOT command

    2
    0 Votes
    2 Posts
    2k Views
    hekH
    You have to have a bootloader with watchdogs enabled like optiboot or the MySensors bootloader.
  • Q about requesting values from another node

    2
    0 Votes
    2 Posts
    1k Views
    hekH
    @Zeph said: Does the temperarture measruring node have to be written to look at the Sender field in the request, and make a send to that? Yes.
  • Time awareness and scheduling events

    30
    0 Votes
    30 Posts
    9k Views
    greglG
    @ToSa In my use case its a pool controller I use a rtc to do several things..but the desire to sync is really just to adjust for daylight savings changes.
  • Secret Knock Sensor (1.4)

    1.4 secret knock example lock
    13
    1 Votes
    13 Posts
    7k Views
    greglG
    Oldies but goodies!
  • Incorrect Sleep Time

    5
    0 Votes
    5 Posts
    2k Views
    Z
    I think I've mentioned the calibrated sleep library before. Not worthwhile for most people, but I wanted to provide a link somewhere here just in case. https://github.com/n0m1/Sleep_n0m1 It has the normal power saving modes (like the rocketscream library currently used by MySensors), but also includes: Function: setCalibrationInterval Description: the WDT needs to be calibrated against timer 0 periodically to keep the sleep time accurate. Default calibration occurs every 100 wake/sleep cycles. recalibrate too often will waste power and too rarely will make the sleep time inaccurate. Parameters: (int) set the # of wake/sleep cycles between calibrations Since the WDT uses a less accurate (and independent) RC oscillator, while Timer 0 is based on a crystal (UNO) or ceramic resonator (Arduino Pro Micro). Hopefully this will show up on a search if anybody's looking for it. Just in case. It would be interesting to see how close one could come to maintaining a timestamp for sensor events, with occassional correction from the gateway.
  • Another way of organizing variables

    25
    0 Votes
    25 Posts
    9k Views
    Z
    @daulagari said: Why not take the plug-in (partly) outside the Home Automation Controller X and make it a component between the Home Automation Controller X and the Gateway That's kind of what I proposed a while back - with the provision that I suggested that one option could include running on the same hardware as the gateway. The idea was indeed to abstract the MySensors wsn. Thanks for the pointers to OpenZwave and Zigbee as possible interface candidates (or inspirations).. That will take more study. Does anybody know how widely these interfaces are already implemented in Home Automation control software? For example, if we had an OpenZWave interface to the MySensors WSN, would we be able to easily connect may open and/or closed source HM contollers to it?
  • WaterMeterPulseSensor SLEEP_MODE true

    1
    0 Votes
    1 Posts
    617 Views
    No one has replied
  • How can I call RF24::powerDown() from my own sleep function?

    3
    0 Votes
    3 Posts
    2k Views
    Paul AugustoP
    @hek Well, that was too easy! :) Now all I have to do is resolve the compile error I get when including the PinChangeInt library without removing MyGateway.cpp from the MySensors library folder, being discussed in http://forum.mysensors.org/topic/347/1-4-error-compiling-with-pinchangeint-h-library-file
  • Some questions about the code (version 1.4)

    9
    0 Votes
    9 Posts
    3k Views
    hekH
    @Tang Gateway is not a sensor ;)
  • Binarysensor with sleep

    9
    0 Votes
    9 Posts
    5k Views
    mountainmanM
    Thanks @Yveaux. Its on the list but it be a while before funds recover to get another toy. Would using a pull-down resistor before more efficient than using the internal pull-up?

9

Online

11.7k

Users

11.2k

Topics

113.0k

Posts