Add CGH1 Qingping Cleargrass window and door sensor (#899)

This commit is contained in:
Florian authored and GitHub committed 2021-03-16 19:24:35 -05:00
1 parent 46e1ee422a
commit ad72211d71
4 files changed
+42 -1

No files matched your search

+2
View File
@@ -75,6 +75,7 @@ extern void createDiscovery(char* sensor_type,
# define jsonPa "{{ float(value_json.pa) * 0.01 }}"
# define jsonId "{{ value_json.id }}"
# define jsonAddress "{{ value_json.address }}"
# define jsonOpen "{{ value_json.open }}"
#else // Home assistant autodiscovery value key definition
# define jsonBatt "{{ value_json.batt | is_defined }}"
# define jsonLux "{{ value_json.lux | is_defined }}"
@@ -103,6 +104,7 @@ extern void createDiscovery(char* sensor_type,
# define jsonPa "{{ float(value_json.pa) * 0.01 | is_defined }}"
# define jsonId "{{ value_json.id | is_defined }}"
# define jsonAddress "{{ value_json.address | is_defined }}"
# define jsonOpen "{{ value_json.open | is_defined }}"
#endif
#endif