Skip to content

Commit

Permalink
Merge pull request #295 from iranl/ha-discovery-naming
Browse files Browse the repository at this point in the history
Optimize Home Assistant entity naming
  • Loading branch information
technyon authored Feb 10, 2024
2 parents a9d80b3 + 2cac62c commit 54bc61d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"battery_low",
uidString,
"_battery_low",
"battery low",
"Battery low",
name,
baseTopic,
String("~") + mqtt_topic_battery_critical,
Expand All @@ -778,7 +778,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"keypad_battery_low",
uidString,
"_keypad_battery_low",
"keypad battery low",
"Keypad battery low",
name,
baseTopic,
String("~") + mqtt_topic_battery_keypad_critical,
Expand All @@ -800,7 +800,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"battery_voltage",
uidString,
"_battery_voltage",
"battery voltage",
"Battery voltage",
name,
baseTopic,
String("~") + mqtt_topic_battery_voltage,
Expand All @@ -816,7 +816,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"trigger",
uidString,
"_trigger",
"trigger",
"Trigger",
name,
baseTopic,
String("~") + mqtt_topic_lock_trigger,
Expand Down Expand Up @@ -850,7 +850,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"reset",
uidString,
"_reset",
"Restart NUKI Hub",
"Restart Nuki Hub",
name,
baseTopic,
String("~") + mqtt_topic_reset,
Expand Down Expand Up @@ -904,7 +904,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"nuki_hub_version",
uidString,
"_nuki_hub_version",
"NUKI Hub version",
"Nuki Hub version",
name,
baseTopic,
_lockPath + mqtt_topic_info_nuki_hub_version,
Expand All @@ -921,7 +921,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"nuki_hub_ip",
uidString,
"_nuki_hub_ip",
"NUKI Hub IP",
"Nuki Hub IP",
name,
baseTopic,
_lockPath + mqtt_topic_info_nuki_hub_ip,
Expand Down Expand Up @@ -1043,7 +1043,7 @@ void Network::publishHASSConfigBatLevel(char *deviceType, const char *baseTopic,
"battery_level",
uidString,
"_battery_level",
"battery level",
"Battery level",
name,
baseTopic,
String("~") + mqtt_topic_battery_level,
Expand All @@ -1068,7 +1068,7 @@ void Network::publishHASSConfigDoorSensor(char *deviceType, const char *baseTopi
"door_sensor",
uidString,
"_door_sensor",
"door sensor",
"Door sensor",
name,
baseTopic,
String("~") + mqtt_topic_lock_door_sensor_state,
Expand All @@ -1093,7 +1093,7 @@ void Network::publishHASSConfigRingDetect(char *deviceType, const char *baseTopi
"ring",
uidString,
"_ring_detect",
"ring detect",
"Ring detect",
name,
baseTopic,
String("~") + mqtt_topic_lock_state,
Expand Down Expand Up @@ -1204,7 +1204,7 @@ void Network::publishHASSWifiRssiConfig(char *deviceType, const char *baseTopic,
"wifi_signal_strength",
uidString,
"_wifi_signal_strength",
"wifi signal strength",
"WIFI signal strength",
name,
baseTopic,
_lockPath + mqtt_topic_wifi_rssi,
Expand All @@ -1227,7 +1227,7 @@ void Network::publishHASSBleRssiConfig(char *deviceType, const char *baseTopic,
"bluetooth_signal_strength",
uidString,
"_bluetooth_signal_strength",
"bluetooth signal strength",
"Bluetooth signal strength",
name,
baseTopic,
String("~") + mqtt_topic_lock_rssi,
Expand Down

0 comments on commit 54bc61d

Please sign in to comment.