HASS Discovery - Create BLE devices automatically to gather entities (#826)
Create automatically devices into Home Assistant through MQTT auto discovery Before, only entities were created automaticaly and they were not linked to a device.
This commit is contained in:
1 parent
a83f725bad
commit
0c01ded583
6 files changed
+200
-109
No files matched your search
@@ -29,13 +29,15 @@
|
||||
|
||||
extern String getUniqueId(String name, String sufix);
|
||||
extern void pubMqttDiscovery();
|
||||
extern void createDiscoveryFromList(char* mac, char* sensorList[][8], int sensorCount);
|
||||
extern void createDiscoveryFromList(char* mac, char* sensorList[][8], int sensorCount,
|
||||
char* device_name, char* device_manufacturer, char* device_model);
|
||||
extern void createDiscovery(char* sensor_type,
|
||||
char* state_topic, char* s_name, char* unique_id,
|
||||
char* availability_topic, char* device_class, char* value_template,
|
||||
char* payload_on, char* payload_off, char* unit_of_meas,
|
||||
int off_delay,
|
||||
char* payload_available, char* payload_not_avalaible, bool child_device, char* command_topic);
|
||||
char* payload_available, char* payload_not_avalaible, bool gateway_entity, char* command_topic,
|
||||
char* device_name, char* device_manufacturer, char* device_model, char* device_mac);
|
||||
|
||||
#define discovery_Topic "homeassistant"
|
||||
|
||||
|
||||
Reference in new issue
Block a user