We have moved at community.getvera.com

Author Topic: Create a new device  (Read 850 times)

Offline vosmont

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 687
  • Karma: +60/-8
Create a new device
« on: November 02, 2015, 09:23:57 am »
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 :
Code: [Select]
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.

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Create a new device
« Reply #1 on: November 02, 2015, 10:01:32 am »
is it possible to create a device from ALTUI ?
[...]
It works from the rooms, so I was expecting the same for the devices.

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.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline vosmont

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 687
  • Karma: +60/-8
Re: Create a new device
« Reply #2 on: November 02, 2015, 01:28:29 pm »
Thanks !
It works  :)