The line of code needed to force your node to move on when no uplink is available
#define MY_TRANSPORT_WAIT_READY_MS 3000
Have a look at this post for details
@novicit I was running the beta Domoticz and found the same thing. I rolled back to the stable version and requests worked once again.
I have not updated domoticz for some time, running 3.5877 at present and this is working with requests.
I flashed your sketch in an Arduino pro mini, it is registering but "both" sensors did not show in Domoticz. I had to trigger >them (send a msg with values) after that Domoticz showed them both.
Yes that is a Domoticz thing i think. the node and sensors will show up in the mysensors hardware device after being presented but the sensors will not be seen in the Devices list until they have sent some data. Domoticz will do this with other sensors as well.
The heartbeat is working from the mysensors point of view, confirmation from the Arduino monitor and a led flashing on >the pro mini (I activated the err, tx, rx option) but Domoticz won't register the heartbeat, can you confirm that?
I experienced the same issue, as you said the heartbeat message is shown to be sent in the serial monitor but no update is registered in domoticz. At the time i thought it would be something at the Domoticz end and would be fixed in a future release. I am fairly sure i am using heartbeat correctly. If someone can shed some light on this i would be grateful.
Sorry I have been a bit remiss with this project, I should have mentioned this in a followup post.
I have been meaning to modify the sketch a bit anyway as I am not completely happy with how the data is shown. At the moment the data displays the last strike until new data is available. This means even if there is no lightning around you will still see the most recent strike data.
I would prefer the display to be reset after a period of time until the next storm period. I think I will use this to both clear the display and also be used as a heartbeat. It will only need minor changes to the current heartbeatCheck function.
One last thing I found that even though my sensor is outdoors i get the best results using AS3935_INDOORS in the setup line.
@andredts As you have discovered version 2.1 nodes while booting will not proceed to the loop part of the sketch if the gateway is not found. You can however force them to move on. The line of code you need is...
#define MY_TRANSPORT_WAIT_READY_MS 3000
This code tells the node how long to wait for the uplink to be established before moving on to the rest of the sketch. The number at the end is how long to wait in milliseconds, in this case 3000ms (3 seconds). You can set this to a time of your choosing.
if the node establishes the uplink it will move on without any delay.
The above line is placed near the top of your sketch somewhere before
have a look at these for a bit more detail....
The reason I was considering going via the controller is so that the controller stays in sync. My worry with communicating directly with the node is that then the controller will think that the light is on, when it's off, or vice versa.
You can still notify the controller of the change but use node to node to activate the light. This is usually the simplest way to go. It also has the advantage that even if the controller is not available the light will still switch.
Like i said having the switch connected to the node that controls the light is the most reliable way, but not always the most convenient.
For the initial prototype, it's a lamp that sits in the far corner of the lounge. Control is currently the in-line switch on the lamp cable. I'd like to place the local control switch somewhere near it, if not on the cable, then on the bookcase that the lamp sits on.
The ethernet gateway is about 5m away from this switch and plug socket, with the controller running on a VM on the same ethernet network.
Where is the node that will control the light going to be. Are you fitting it inside the lamp or is it to be external?
You may get some ideas from these posts
It is very easy to use, just three parameters pinnumber,frequency,duration
So to play a tone on pin 7 at 1200Hz for 60ms you would use
tone(7, 1200, 60);
Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.