mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-10-31 07:48:13 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -329,7 +329,8 @@ | |||||||
|           "data_attribute": "percentage", |           "data_attribute": "percentage", | ||||||
|           "min": 0, |           "min": 0, | ||||||
|           "max": 100, |           "max": 100, | ||||||
|           "step": 1 |           "step": 1, | ||||||
|  |           "display_format": "%.0f%%" | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           "type": "numeric", |           "type": "numeric", | ||||||
| @@ -381,10 +382,7 @@ | |||||||
|           "entity": "climate.example", |           "entity": "climate.example", | ||||||
|           "attribute": "temperature", |           "attribute": "temperature", | ||||||
|           "service": "climate.set_temperature", |           "service": "climate.set_temperature", | ||||||
|           "data_attribute": "temperature", |           "data_attribute": "temperature" | ||||||
|           "min": 0, |  | ||||||
|           "max": 100, |  | ||||||
|           "step": 1 |  | ||||||
|         } |         } | ||||||
|       ], |       ], | ||||||
|       "allOf": [ |       "allOf": [ | ||||||
| @@ -411,19 +409,20 @@ | |||||||
|             }, |             }, | ||||||
|             "min": { |             "min": { | ||||||
|               "type": "number", |               "type": "number", | ||||||
|               "title": "Minimum value" |               "title": "Minimum Value" | ||||||
|             }, |             }, | ||||||
|             "max": { |             "max": { | ||||||
|               "type": "number", |               "type": "number", | ||||||
|               "title": "Maximum value" |               "title": "Maximum Value" | ||||||
|             }, |             }, | ||||||
|             "step": { |             "step": { | ||||||
|               "type": "number", |               "type": "number", | ||||||
|               "title": "Step size" |               "title": "Step Size" | ||||||
|             }, |             }, | ||||||
|             "display_format": { |             "display_format": { | ||||||
|               "type": "string", |               "type": "string", | ||||||
|               "title": "A C-Style format string for displaying the value in the UI.", |               "title": "Display Format", | ||||||
|  |               "description": "A C-Style format string for displaying the value in the UI. https://developer.garmin.com/connect-iq/api-docs/Toybox/Lang/Number.html#format-instance_function", | ||||||
|               "default": "%.1f" |               "default": "%.1f" | ||||||
|             }, |             }, | ||||||
|             "entity": { |             "entity": { | ||||||
| @@ -431,14 +430,16 @@ | |||||||
|             }, |             }, | ||||||
|             "attribute": { |             "attribute": { | ||||||
|               "type": "string", |               "type": "string", | ||||||
|               "title": "Attribute on the entity with the current numeric value. To use the state of the entity, do not specify." |               "title": "Attribute on the entity", | ||||||
|  |               "description": "Attribute on the entity with the current numeric value. To use the state of the entity, do not specify." | ||||||
|             }, |             }, | ||||||
|             "service": { |             "service": { | ||||||
|               "$ref": "#/$defs/service" |               "$ref": "#/$defs/service" | ||||||
|             }, |             }, | ||||||
|             "data_attribute": { |             "data_attribute": { | ||||||
|               "type": "string", |               "type": "string", | ||||||
|               "title": "Attribute on the service data for the value to set." |               "title": "Attribute on the service data", | ||||||
|  |               "description": "Attribute on the service data for the value to set." | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|           "required": [ |           "required": [ | ||||||
| @@ -712,24 +713,92 @@ | |||||||
|     "items": { |     "items": { | ||||||
|       "type": "array", |       "type": "array", | ||||||
|       "items": { |       "items": { | ||||||
|         "oneOf": [ |         "allOf": [ | ||||||
|           { |           { | ||||||
|             "$ref": "#/$defs/toggle" |             "properties": { | ||||||
|  |               "type": { | ||||||
|  |                 "enum": [ | ||||||
|  |                   "toggle", | ||||||
|  |                   "template", | ||||||
|  |                   "tap", | ||||||
|  |                   "info", | ||||||
|  |                   "group", | ||||||
|  |                   "numeric" | ||||||
|  |                 ] | ||||||
|  |               } | ||||||
|  |             } | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             "$ref": "#/$defs/template" |             "if": { | ||||||
|           }, |               "properties": { | ||||||
|           { |                 "type": { | ||||||
|             "$ref": "#/$defs/tap" |                   "const": "toggle" | ||||||
|           }, |                 } | ||||||
|           { |               } | ||||||
|             "$ref": "#/$defs/info" |             }, | ||||||
|           }, |             "then": { | ||||||
|           { |               "$ref": "#/$defs/toggle" | ||||||
|             "$ref": "#/$defs/group" |             }, | ||||||
|           }, |             "else": { | ||||||
|           { |               "if": { | ||||||
|             "$ref": "#/$defs/numeric" |                 "properties": { | ||||||
|  |                   "type": { | ||||||
|  |                     "const": "template" | ||||||
|  |                   } | ||||||
|  |                 } | ||||||
|  |               }, | ||||||
|  |               "then": { | ||||||
|  |                 "$ref": "#/$defs/template" | ||||||
|  |               }, | ||||||
|  |               "else": { | ||||||
|  |                 "if": { | ||||||
|  |                   "properties": { | ||||||
|  |                     "type": { | ||||||
|  |                       "const": "tap" | ||||||
|  |                     } | ||||||
|  |                   } | ||||||
|  |                 }, | ||||||
|  |                 "then": { | ||||||
|  |                   "$ref": "#/$defs/tap" | ||||||
|  |                 }, | ||||||
|  |                 "else": { | ||||||
|  |                   "if": { | ||||||
|  |                     "properties": { | ||||||
|  |                       "type": { | ||||||
|  |                         "const": "info" | ||||||
|  |                       } | ||||||
|  |                     } | ||||||
|  |                   }, | ||||||
|  |                   "then": { | ||||||
|  |                     "$ref": "#/$defs/info" | ||||||
|  |                   }, | ||||||
|  |                   "else": { | ||||||
|  |                     "if": { | ||||||
|  |                       "properties": { | ||||||
|  |                         "type": { | ||||||
|  |                           "const": "group" | ||||||
|  |                         } | ||||||
|  |                       } | ||||||
|  |                     }, | ||||||
|  |                     "then": { | ||||||
|  |                       "$ref": "#/$defs/group" | ||||||
|  |                     }, | ||||||
|  |                     "else": { | ||||||
|  |                       "if": { | ||||||
|  |                         "properties": { | ||||||
|  |                           "type": { | ||||||
|  |                             "const": "numeric" | ||||||
|  |                           } | ||||||
|  |                         } | ||||||
|  |                       }, | ||||||
|  |                       "then": { | ||||||
|  |                         "$ref": "#/$defs/numeric" | ||||||
|  |                       } | ||||||
|  |                     } | ||||||
|  |                   } | ||||||
|  |                 } | ||||||
|  |               } | ||||||
|  |             } | ||||||
|           } |           } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user