We have moved at community.getvera.com

Author Topic: Bad plugin services used in Altui  (Read 1039 times)

Offline fliflo

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Bad plugin services used in Altui
« on: September 02, 2016, 07:58:24 am »
HI,
I've got a problem in Altui with a plugin I'm trying to develop.
I used the Yamaha Network Control Alias Plugin as example to create my plugin.
So now, I've got a device ) wich use the Yamaha plugin and a device wich use my new plugin.
In the vera interface (UI7) all is ok (see attachements vera_lbp.jpg & vera_yam.jpg) but in Altui the 2 devices have same actions in scenes & personnal pages (see attachment vera_altui_lbp.jpg & vera_altui_yam.jpg).
I don't know if it can be an issue on Altui or if I miss something in my plugin... Any ides ?

Here the yamaha device :
Code: [Select]
{
    "id": 309,
    "room": "1",
    "id_parent": 0,
    "embedded": 0,
    "disabled": 0,
    "device_file": "D_YamahaReceiver1.xml",
    "impl_file": "I_YamahaReceiver1.xml",
    "manufacturer": "",
    "model": "",
    "altid": "",
    "ip": "192.168.2.25",
    "mac": "",
    "time_created": "1472763971",
    "states": [
      {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "variable": "Model",
        "value": "RX-V473",
        "id": 0
      },
Other services...
      {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "variable": "NetRadioStation",
        "value": "",
        "id": 21
      }
    ],
    "name": "Yamaha Receiver (YNCA2)",
    "ControlURLs": {
      "service_153": {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "ControlURL": "/upnp/control/dev_153",
        "EventURL": "/upnp/event/dev_153",
        "serviceType": "urn:schemas-ynca-com:serviceId:Receiver:1"
      }
    },
    "device_type": "urn:schemas-micasaverde-com:device:receiver:1",
    "device_json": "D_YamahaReceiver1.json",
    "category_num": 15,
    "subcategory_num": 0,
    "local_udn": "uuid:4d494342-5342-5645-0135-00000217c303",
    "altuiid": "0-309",
    "favorite": false,
    "dirty": false
  },

and here my plugin device :
Code: [Select]
{
    "id": 302,
    "room": "1",
    "id_parent": 0,
    "embedded": 0,
    "disabled": 0,
    "device_file": "D_LiveboxPlay1.xml",
    "manufacturer": "",
    "model": "",
    "altid": "",
    "ip": "192.168.2.9",
    "mac": "",
    "time_created": "1472585115",
    "states": [],
    "name": "Livebox Play",
    "ControlURLs": {
      "service_148": {
        "service": "urn:lbp-com:serviceId:Receiver1",
        "ControlURL": "/upnp/control/dev_148",
        "EventURL": "/upnp/event/dev_148",
        "serviceType": "urn:schemas-lbp-com:serviceId:Receiver:1"
      }
    },
    "device_type": "urn:schemas-micasaverde-com:device:receiver:1",
    "device_json": "D_LiveboxPlay1.json",
    "category_num": 15,
    "subcategory_num": 0,
    "impl_file": "I_LiveboxPlay1.xml",
    "local_udn": "uuid:4d494342-5342-5645-012e-00000217c303",
    "altuiid": "0-302",
    "favorite": false,
    "dirty": false
},

I can give you my source code if can help.

Thank you

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +209/-8
Re: Bad plugin services used in Altui
« Reply #1 on: September 13, 2016, 06:37:37 am »
HI,
I've got a problem in Altui with a plugin I'm trying to develop.
I used the Yamaha Network Control Alias Plugin as example to create my plugin.
So now, I've got a device ) wich use the Yamaha plugin and a device wich use my new plugin.
In the vera interface (UI7) all is ok (see attachements vera_lbp.jpg & vera_yam.jpg) but in Altui the 2 devices have same actions in scenes & personnal pages (see attachment vera_altui_lbp.jpg & vera_altui_yam.jpg).
I don't know if it can be an issue on Altui or if I miss something in my plugin... Any ides ?

Here the yamaha device :
Code: [Select]
{
    "id": 309,
    "room": "1",
    "id_parent": 0,
    "embedded": 0,
    "disabled": 0,
    "device_file": "D_YamahaReceiver1.xml",
    "impl_file": "I_YamahaReceiver1.xml",
    "manufacturer": "",
    "model": "",
    "altid": "",
    "ip": "192.168.2.25",
    "mac": "",
    "time_created": "1472763971",
    "states": [
      {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "variable": "Model",
        "value": "RX-V473",
        "id": 0
      },
Other services...
      {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "variable": "NetRadioStation",
        "value": "",
        "id": 21
      }
    ],
    "name": "Yamaha Receiver (YNCA2)",
    "ControlURLs": {
      "service_153": {
        "service": "urn:ynca-com:serviceId:Receiver1",
        "ControlURL": "/upnp/control/dev_153",
        "EventURL": "/upnp/event/dev_153",
        "serviceType": "urn:schemas-ynca-com:serviceId:Receiver:1"
      }
    },
    "device_type": "urn:schemas-micasaverde-com:device:receiver:1",
    "device_json": "D_YamahaReceiver1.json",
    "category_num": 15,
    "subcategory_num": 0,
    "local_udn": "uuid:4d494342-5342-5645-0135-00000217c303",
    "altuiid": "0-309",
    "favorite": false,
    "dirty": false
  },

and here my plugin device :
Code: [Select]
{
    "id": 302,
    "room": "1",
    "id_parent": 0,
    "embedded": 0,
    "disabled": 0,
    "device_file": "D_LiveboxPlay1.xml",
    "manufacturer": "",
    "model": "",
    "altid": "",
    "ip": "192.168.2.9",
    "mac": "",
    "time_created": "1472585115",
    "states": [],
    "name": "Livebox Play",
    "ControlURLs": {
      "service_148": {
        "service": "urn:lbp-com:serviceId:Receiver1",
        "ControlURL": "/upnp/control/dev_148",
        "EventURL": "/upnp/event/dev_148",
        "serviceType": "urn:schemas-lbp-com:serviceId:Receiver:1"
      }
    },
    "device_type": "urn:schemas-micasaverde-com:device:receiver:1",
    "device_json": "D_LiveboxPlay1.json",
    "category_num": 15,
    "subcategory_num": 0,
    "impl_file": "I_LiveboxPlay1.xml",
    "local_udn": "uuid:4d494342-5342-5645-012e-00000217c303",
    "altuiid": "0-302",
    "favorite": false,
    "dirty": false
},

I can give you my source code if can help.

Thank you
Check the device Xml and the service xml files. Altui, receives the device type and scans the d___.xml and S___.xml files to know actions and parameters

Offline fliflo

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Bad plugin services used in Altui
« Reply #2 on: September 13, 2016, 04:42:03 pm »
You're right it was a device type problem. That's ok now !
That's my first little plugin development so i'm learning...  ;)
Thank you !