ui7 multi_state_button tab

I have tried using the multi_state_button on one of my plugins but have not been able to work out how to position them when you click through to the tab. Currently they all render on top of each other.

I have looked through the forum trying to find out if this has been spoken about but can’t find anything (I know it is probably there somewhere). Anyway has anyone got a work around or has this been reported as a bug and it is been worked on?

Attached two screenshots to make what I am talking about a bit clearer.

Note: The smaller button off to the side is the slider, I can move this as per normal.

Cheers

Hi,

You probably need to experiment a bit with the top and left and x and y values in the json. I did experiment a little with it and found it was not quite working as described on the wiki pages. The button did not do what I needed so I do not have my findings at hand anymore.

Success.

Cheers Rene

@reneboer
I did play with the x and y values in json but nothing worked. Mabye need to go back to single buttons for now :frowning:

Thanks

I’m struggling against this multi state button too.
The wiki page is not complete.

for your problem of placement in the tab view, you need the “Display” option :

{
					"ControlGroup": "1",
					"ControlType": "multi_state_button",
					"top": "0",
					"left": "0",
					"states": [
						{
							"Label": {
								"lang_tag": "ui7_off",
								"text": "OFF"
							},
							"ControlGroup": "1",
							"Display": {
								"Service": "urn:upnp-org:serviceId:RGBController1",
								"Variable": "Status",
								"Value": "0"
							},
							"Command": {
								"Service": "urn:upnp-org:serviceId:RGBController1",
								"Action": "SetTarget",
								"Parameters": [
									{
										"Name": "newTargetValue",
										"Value": "0"
									}
								]
							},
							"ControlCode": "rgbcontroller_power_off"
						},
						{
							"Label": {
								"lang_tag": "ui7_on",
								"text": "ON"
							},
							"ControlGroup": "1",
							"Display": {
								"Service": "urn:upnp-org:serviceId:RGBController1",
								"Variable": "Status",
								"Value": "1"
							},
							"Command": {
								"Service": "urn:upnp-org:serviceId:RGBController1",
								"Action": "SetTarget",
								"Parameters": [
									{
										"Name": "newTargetValue",
										"Value": "1"
									}
								]
							},
							"ControlCode": "rgbcontroller_power_on"
						}
					],
					"Display": {
						"Top": 0,
						"Left": 10
					}
				}

but the main issue is, when you click on the button, the UI is blocked during 30 secondes.

@vosmont
Thanks will give that a try :slight_smile:

Works a treat, thank you.

This is also a known issue… I reported it (and I believe that several other developer have as well) several weeks ago, and submitted verbose debug logs, and no word back yet…