Restarting domoticz might help next time, when you have original code running on that node again.
Also some PIR cause radio interference, if i remember correctly, then hc sr501 should be ok.
@mfalkvidd said in Sample sketch for test node including hardware and software acknowledgement:
char messagestring[100];
message.getString(messagestring);
Serial.println(messagestring);
@mfalkvidd Fantasic. Thank you. That is what I was looking for . It works now !!!
On my test node I have enabled Echo and am using if (message.isEcho())
It is working.
I have searched and searched and looked at the API docs but am still unclear :
If the node sends a value, should it be able to read that same value back in the echoed message.
I know I can use message.sender , message.type etc, but how would I print the whole echoed message and/or the echoed value.
@Yveaux Yes I had manually changed MyConfig.h to reflect the channel number I use. I thought I had read that was the way to do it. Okay thanks for putting me straight. Good to know it was just normal behaviour. I'll add it to each of my sketches in future.
Thanks.
@grumpazoid said in Easy PCB Question:
I've switched to open source solutions wherever able.
Good for you! :+1:
Personally I prefer the term Free/Libre Software to "Open Source." They are very similar ideas, but not exactly the same. ;)
Cheers! :beers:
I have found a workaround by sending the heartbeat message as a separate V_MULTIMETER child. This then gives me a voltage reading of 0V every 30 seconds that I can use with the Domoticz last update feature :grinning:
Would like to hear any better ways of doing this.
@grumpazoid If you need inspiration, I wrote a number of sketches used in the MySensors Dollhouse setup, e.g. the Fireplace sketch.
They can be found here: https://github.com/Yveaux/Dollhouse_sketches
My understanding is that Myscontroller can only talk to the gateway, so if the node is not connecting to the gateway it will be invisible to Myscontroller. I am trying to resolve a similar situation, where I've burnt MysBootloader to a Arduino Pro Mini and it is not connecting to the gateway.
I have my ethernet gateway up and running on a breadboard. It worked first time :sunglasses:
If this is of use to anyone, all I did in Domoticz was go into Setup/Hardware and change the existing serial gateway to "Mysensors Gateway with LAN interface" and press update. All the sensors are then remembered as the Gateway IDX stays the same.
@electrik Yes, I drilled a 6.5mm hole, just big enough for the SMA connector to fit through and then screwed the antenna back on. Because the plate sits inbetween the radio and antenna, and touches the outside of the SMA, it is connected to ground.
@grumpazoid said in Resettable fuses.:
I have made up some 500mA quick blow fuses that I already have from a trusted source.
I am very happy to hear this. I am sure you will sleep safer and be prouder of your project by being more professional about safety.
Whilst there are some things you can get away with using cheap components for, safety and power supplies are not to be taken lightly.