Thanks @rigpapa
I was trying to avoid a full on plug-in, as I’ve never been successful before, but it seems certain files are unavoidable… (I used the mousetrap one as the basis for RoomMe device xml file)
Device File
D_RoomMeSensor1.xml
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-micasaverde-com:device:RoomMe:1</deviceType>
<staticJson>D_RoomMeSensor1.json</staticJson>
<Category_Num>29</Category_Num>
<serviceList>
<service>
<serviceType>urn:schemas-micasaverde-com:service:SecuritySensor:1</serviceType>
<serviceId>urn:micasaverde-com:serviceId:SecuritySensor1</serviceId>
<SCPDURL>S_SecuritySensor1.xml</SCPDURL>
</service>
<service>
<serviceType>urn:schemas-micasaverde-com:service:HaDevice:1</serviceType>
<serviceId>urn:micasaverde-com:serviceId:HaDevice1</serviceId>
<SCPDURL>S_HaDevice1.xml</SCPDURL>
</service>
</serviceList>
</device>
</root>
and then my current static.json is as follows…
D_RoomMeSensor1.json
{
"default_icon": "meter_default.png",
"x": "2",
"y": "3",
"inScene": "0",
"Tabs": [
{
"Label": {
"lang_tag": "ui7_tabname_control",
"text": "Control"
},
"Position": "0",
"TabType": "flash",
"top_navigation_tab": 1,
"ControlGroup": [
{
"id": "1",
"scenegroup": "1"
},
{
"id": "2",
"scenegroup": "2"
}
],
"SceneGroup": [
{
"id": "1",
"top": "1",
"left": "0",
"x": "2",
"y": "1"
},
{
"id": "2",
"top": "2",
"left": "0",
"x": "2",
"y": "1",
"isSingle": "1"
}
],
"Control": [
{
"ControlGroup": "1",
"ControlType": "label",
"top": "0",
"left": "0",
"Label": {
"lang_tag": "ui4_Room",
"text": "Room : "
},
"Display": {
"Top": 60,
"Left": 50,
"Width": 75,
"Height": 20
}
},
{
"ControlGroup": "1",
"ControlType": "variable",
"top": "0",
"left": "1",
"Display": {
"Service": "urn:nodecentral-net:serviceId:RoomMe1",
"Variable": "roomName",
"Top": 60,
"Left": 125,
"Width": 75,
"Height": 20
}
},
{
"ControlGroup": "2",
"ControlType": "label",
"top": "1",
"left": "0",
"Label": {
"lang_tag": "ui8_Event",
"text": "Event : "
},
"Display": {
"Top": 90,
"Left": 50,
"Width": 75,
"Height": 20
}
},
{
"ControlGroup": "2",
"ControlType": "variable",
"top": "1",
"left": "1",
"Display": {
"Service": "urn:nodecentral-net:serviceId:RoomMe1",
"Variable": "eventName",
"Top": 90,
"Left": 125,
"Width": 75,
"Height": 20
}
}
]
},
{
"Label": {
"lang_tag": "ui7_settings",
"text": "Settings"
},
"Position": "1",
"TabType": "javascript",
"ScriptName": "shared.js",
"Function": "simple_device"
},
{
"Label": {
"lang_tag": "ui7_advanced",
"text": "Advanced"
},
"Position": "2",
"TabType": "javascript",
"ScriptName": "shared.js",
"Function": "advanced_device"
}
],
"eventList2": [],
"device_type": "urn:schemas-micasaverde-com:device:RoomMe:1"
}
Which is currently giving me the following…
… which for the life of me I can’t get the text sizes to all be the same , nor can I move the bottom text over, so it’s in the middle (or to the right) more…