NodeRed event "create a new device"

hello
when I create a new device,
there is a mode to read this event on NodeRed?
best regards

Dante

Hi @secur_lab,

yes, you can use the Server Event node, and set Asset to device and Event to device_create. Something like:

image

Then, after a device is created, the event is captured:

image

Raw information provided:

{
   "connection":{
      "active":false,
      "host":"",
      "ip":"",
      "location":{
         "country":"",
         "country_code":"",
         "lat":-91,
         "lon":-181
      },
      "ts":0
   },
   "description":"Device Description",
   "device":"test_device",
   "enabled":true,
   "event":"device_create",
   "name":"Test Device",
   "ts":1648497604824,
   "type":"Generic",
   "user":"alvarolb"
}

server_event
hello
i can’t select event : device_create
the node configuration window is different from yours
i can select event only : bucket_write , device_state_change , device_callback_call, device_property_update, device_location_update, endpoint_call
NodeRed rev 2.0.6

ok now I have done the NodeRed update and I see all and many new events !!

! thank you

1 Like