Create a new device

Hello,

is it possible to create a device from ALTUI ?

the URL called by ALTUI :
http://127.0.0.1:3480/data_request?id=action&output_format=json&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreateDevice&Description=&UpnpDevFilename=D_VirtualAlarmPanel1.xml&UpnpImplFilename=&RoomNum=0&Reload=1

response from openLuup :
{“u:CreateDeviceResponse”:{“OK”:“OK”}}

in the logs :

2015-11-02 15:19:42.604   openLuup.server:: /data_request?id=action&output_format=json&DeviceNum=0&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreateDevice&Description=&UpnpDevFilename=D_VirtualAlarmPanel1.xml&UpnpImplFilename=&RoomNum=0&Reload=1 tcp{client}: 021D4380
2015-11-02 15:19:42.605   luup.call_action:: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.CreateDevice 
2015-11-02 15:19:42.607   openLuup.server:: request completed (38 bytes, 1 chunks, 3 ms) tcp{client}: 021D4380

But the device does not appear in the UI (even with “exit” command to save “user_data.json” file).

It works from the rooms, so I was expecting the same for the devices.

[quote=“vosmont, post:1, topic:189483”]is it possible to create a device from ALTUI ?
[…]
It works from the rooms, so I was expecting the same for the devices.[/quote]

You’re right, your version doesn’t work, due mainly to the fact the AltUI needed a change to make it work in openLuup.

However, the release out today (a bit later) has that fix, and also, with enormous thanks to @amg0, it will work from the UI +Create button.

Thanks !
It works :slight_smile: