Add Eddystone TLM BLE protocol (#972)
supporting battery, temperature, count and time from start in s
This commit is contained in:
1 parent
db2d2712a4
commit
2737a4cbf7
4 files changed
+43
No files matched your search
@@ -79,6 +79,8 @@ extern void createDiscovery(const char* sensor_type,
|
||||
# define jsonId "{{ value_json.id }}"
|
||||
# define jsonAddress "{{ value_json.address }}"
|
||||
# define jsonOpen "{{ value_json.open }}"
|
||||
# define jsonTime "{{ value_json.time }}"
|
||||
# define jsonCount "{{ value_json.count }}"
|
||||
#else // Home assistant autodiscovery value key definition
|
||||
# define jsonBatt "{{ value_json.batt | is_defined }}"
|
||||
# define jsonLux "{{ value_json.lux | is_defined }}"
|
||||
@@ -111,6 +113,8 @@ extern void createDiscovery(const char* sensor_type,
|
||||
# define jsonId "{{ value_json.id | is_defined }}"
|
||||
# define jsonAddress "{{ value_json.address | is_defined }}"
|
||||
# define jsonOpen "{{ value_json.open | is_defined }}"
|
||||
# define jsonTime "{{ value_json.time | is_defined }}"
|
||||
# define jsonCount "{{ value_json.count | is_defined }}"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user