Add Eddystone TLM BLE protocol (#972)

supporting battery, temperature, count and time from start in s
This commit is contained in:
Florian authored and GitHub committed 2021-06-08 17:53:58 -05:00
1 parent db2d2712a4
commit 2737a4cbf7
4 files changed
+43

No files matched your search

+4
View File
@@ -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