Thresholds on Gauges?

Hey @Igor I’m trying out the new gauge thresholds… Can you guide me on what I’m doing wrong here?
Ideally I’d like it to turn orange over 500w and then red over 1000w…

{
			  "type": "gauge",
			  "position": "2-0,1-1",
			  "properties": {
				"label": "House Power",
				"icon": "energy",
				"unit": "W",
				"value": {
				  "binding": "PowerWatts"
				},
				"thresholds": {"value": 500,"color":"39,100,100"},
				"max": 5000
			  }
			}

@TommySharp thresholds value should be a map of objects (map keys are not important, as long as they are unique). There seems to be a bug in documentation, so the example is missing that. Will fix.

So it would be something like this:

{
  "type": "gauge",
  "position": "2-0,1-1",
  "properties": {
    "label": "House Power",
    "icon": "energy",
    "unit": "W",
    "value": {
      "binding": "PowerWatts"
    },
    "thresholds": {
      "medium": {
        "value": 500,
        "color": "39,100,100"
      },
      "high": {
        "value": 1000,
        "color": "12,100,100"
      }
    },
    "max": 5000
  }
}

Thanks @igor… Gave your exact JSON a try and the widget just shows as a blank value like below… As soon as I remove just the thresholds section then it comes back to life and shows the power value like it used to?

2019-04-02_213935

Okay wait… Looks like terminating the app and re-opening has fixed it…
What syntax is used to determine the colour? RGB doesn’t seem to be it?

Config supports only HSB format at this time.