Device dashboard buttons

Hi all,

I’m working on a Lutron RadioRA plugin for UI5 and am having a problem getting buttons to display in the device’s entry on the dashboard.

I’ve set up the JSON file (included below) according to the instructions on the Wiki to include two buttons: “All On” and “All Off” in two different scene groups and control groups so they are independently clickable. However, for some reason only the “All Off” button will display. If I reverse the order of the controls in the tab definition, then only the “All On” button will display. They do appear correctly in the tab within the device’s settings.

Any idea what I might be doing wrong?

Thanks in advance.

{
	"flashicon": "icons\/generic_sensor.swf",
	"imgIconBody": "",
	"imgIconDimmable": "",
	"imgIconTurnable": "",
	"imgIconMin": "",
	"imgIconMax": "",
	"halloIconsDir": "pics\/hallo",
	"inScene": "1",
	"DisplayStatus": {
	},
	"doc_url": {
		"doc_language": 1,
		"doc_manual": 1,
		"doc_version": 1,
		"doc_platform": 0,
		"doc_page": "devices"
	},
	"Tabs": [
		{
			"Label": {
				"lang_tag": "RadioRA_rs232",
				"text": "RadioRA Controls"
			},
			"Position": "0",
			"TabType": "flash",
			"ControlGroup": [
				{
					"id": "1",
					"isSingle": "1",
					"scenegroup": "1"
				},
				{
					"id": "2",
					"isSingle": "1",
					"scenegroup": "2"
				}
			],
			"SceneGroup": [
				{
					"id": "1",
					"top": "2",
					"left": "0"
				},
				{
					"id": "2",
					"top": "2",
					"left": "0"
				}
			],
			"Control": [ 
				{
					"ControlGroup": "1",
					"ControlType": "button",
					"Label": {
						"lang_tag": "all_on",
						"text": "All On"
					},
					"Display": {
						"Top": 10,
						"Left": 120,
						"Width": 75,
						"Height": 20
					},
					"Command": {
						"Service": "urn:micasaverde-com:serviceId:LutronRadioRA1",
						"Action": "AllLightsOn",
						"Parameters": []
					}
				},
				{
					"ControlGroup": "2",
					"ControlType": "button",
					"Label": {
						"lang_tag": "all_off",
						"text": "All Off"
					},
					"Display": {
						"Top": 10,
						"Left": 10,
						"Width": 75,
						"Height": 20
					},
					"Command": {
						"Service": "urn:micasaverde-com:serviceId:LutronRadioRA1",
						"Action": "AllLightsOff",
						"Parameters": []
					}
				}
			]
		},
		{
			"Label": {
				"lang_tag": "settings",
				"text": "Settings"
			},
			"Position": "1",
			"TabType": "javascript",
			"ScriptName": "shared.js",
			"Function": "simple_device"
		},
		{
			"Label": {
				"lang_tag": "advanced",
				"text": "Advanced"
			},
			"Position": "2",
			"TabType": "javascript",
			"ScriptName": "shared.js",
			"Function": "advanced_device"
		}
	],
	"DeviceType": "urn:schemas-micasaverde-com:service:LutronRadioRA:1",
	"device_type": "urn:schemas-micasaverde-com:service:LutronRadioRA:1"
}

Hi,

Your scene groups have the same coordinates. Both are 2 tiles from the top and 0 from the left. These coordinates are absolute, not relative.

"SceneGroup": [
    {
        "id": "1",
        "top": "2",
        "left": "0"
    },
    {
        "id": "2",
        "top": "2",
        "left": "0"
    }
],

That solved it… thank you!

Whizzosoftware,

Do you have experience with Lutron Homeworks?