switch to HA update integration for updatecheck

This commit is contained in:
John
2022-12-11 18:06:48 +01:00
parent 1596c73fa3
commit 91484ad4ee
+2 -2
View File
@@ -349,9 +349,9 @@ def_global_signal-topic = %haprefix/binary_sensor/%TOPIC/config
def_global_signal-payload = %global_prefix,
"device_class":"connectivity"%global_boolean_suffix
def_global_updatecheck-topic = %haprefix/update/%TOPIC/config
def_global_updatecheck-payload = %global_prefix,
"state_class":"measurement",
"value_template":"{{value_json|truncate(255)}}"
"value_template":"{%% set my_vernum = value_json|truncate(255)|regex_replace(find=',.*| available|revision v|version v',replace='') %%}{%% set my_ver = {'installed_version':'%version','latest_version':my_vernum,'entity_picture':'https://ebusd.eu/logo-32x32.png','release_url':'https://github.com/john30/ebusd/releases/latest'} %%}{%% if my_vernum == '' %%}{%% set my_ver.latest_version = '%version' %%}{%% endif %%}{{ my_ver | tojson }}"
}
# the topic and payload to listen to in order to republish all config messages.