Add group to sensor 1st discovery + template syntax {{ $xxx }} (#9667)

* add group to sensor initial discovery and use dynamic_discovery_get_value template syntax on them

* spaces

* switching to YamlDiscovery::replaceValues

* testdata from ibmc

* testdata from nxos

* testdata from omnitron-iconverter

* testdata from vrp

* adapt discovery_schema to accept variables

* remove pattern

* Update discovery_schema.json
This commit is contained in:
PipoCanaja
2019-01-16 03:56:30 +01:00
committed by Tony Murray
parent d33d87931e
commit 8e80121c33
11 changed files with 385 additions and 389 deletions

View File

@@ -118,8 +118,7 @@
"type": "string"
},
"group": {
"type": "string",
"pattern": "^[A-Z]"
"type": "string"
},
"low_limit": {
"type": ["number", "string"]
@@ -333,8 +332,7 @@
"type": "string"
},
"group": {
"type": "string",
"pattern": "^[A-Z]"
"type": "string"
},
"low_limit": {
"type": ["number", "string"]