Open flatsiedatsie opened 5 years ago
Woohoo! I will test it!
It works.
However, the node name does not come through yet. They are all called "new node" in the JSON. I don't know if that matters.
0
node_id 0
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
1
node_id 1
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
2
node_id 3
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
3
node_id 9
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
4
node_id 14
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
5
node_id 15
node_name "New Node"
firmware_type 0
firmware_version 0
desired_firmware_type 0
desired_firmware_version 0
auto_update false
scheduled false
parent_node_id 0
Since we are creating the node during child sensor's presentation message - I couldn't determine the node name. This can be altered using a put request. For the sensors I like the idea of keeping the description in presentation message as sensor name. I'll work on that. For node name I was depending on the Firmware request message (which we get when the MySensorBootloader is used). Now we need to see if there is another presentation message by the (parent) node and use it.
Wouldn't the "sendSketchInfo" call be the logical place to get the name?
sendSketchInfo(F("Gentle alarm clock"), F("1.6"));
Dec 10 15:20:30 DEBUG TSF:MSG:READ,15-15-0,s=255,c=3,t=11,pt=0,l=18,sg=0:Gentle alarm clock Dec 10 15:20:30 DEBUG TSF:MSG:READ,15-15-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.6
I'll look into it.
In MySensors node ID's are often generated automatically.
As discussed, the MySController-rs software could pick up on these ID's.
Here's a typical ID message: Nov 20 09:06:07 DEBUG TSF:MSG:READ,15-15-0,s=255,c=3,t=11,pt=0,l=21,sg=0:SMS & password relays
Here's another one from a temperature-humidity-barometer node (using the popular Bosch BME280 sensor).