first working discovery

This commit is contained in:
Daniel Ekman
2021-12-21 23:17:29 +01:00
parent 03089e92cb
commit 2e4e4328f2
3 changed files with 71 additions and 9 deletions

View File

@@ -2,14 +2,16 @@
"name" : "%s",
"stat_t" : "%s",
"json_attr_t" : "%s",
"uniq_id" : "%s",
"obj_id" : "%s",
"unit_of_meas" : "%s",
"val_tpl" : "{{value_json['%s']}}",
"uniq_id" : "%s",
"json_attr_tpl" : "{{ value_json }}",
"dev" : {
"ids" : [ "%s" ],
"name" : "AMS reader",
"mdl" : "ESP32",
"sw" : "2.0.0",
"mf" : "AmsToMqttBridge"
"name" : "%s",
"mdl" : "%s",
"sw" : "%s",
"mf" : "%s"
}
}
}

13
web/hadiscover2.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name" : "%s",
"stat_t" : "%s",
"uniq_id" : "%s",
"obj_id" : "%s",
"unit_of_meas" : "%s",
"val_tpl" : "{{value_json['%s']}}",
"dev_cla" : "%s",
"stat_cla" : "%s",
"dev" : {
"ids" : [ "%s" ]
}
}