Skip to content

Commit

Permalink
change mqtt topic names
Browse files Browse the repository at this point in the history
  • Loading branch information
brunob45 committed Aug 8, 2023
1 parent 4951bc9 commit f4b309b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ISP-RPi-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ def isAliveTimerRunning():
# table of key items to publish:
detectorValues = OrderedDict([
(K_LD_MONITOR, dict(
title="RPi Monitor {}".format(rpi_hostname),
title="Monitor",
topic_category="sensor",
device_class="timestamp",
device_ident="RPi-{}".format(rpi_fqdn),
Expand All @@ -1391,7 +1391,7 @@ def isAliveTimerRunning():
json_value="timestamp",
)),
(K_LD_SYS_TEMP, dict(
title="RPi Temp {}".format(rpi_hostname),
title="Temperature",
topic_category="sensor",
device_class="temperature",
no_title_prefix="yes",
Expand All @@ -1400,23 +1400,23 @@ def isAliveTimerRunning():
json_value="temperature_c",
)),
(K_LD_FS_USED, dict(
title="RPi Disk Used {}".format(rpi_hostname),
title="Disk Used",
topic_category="sensor",
no_title_prefix="yes",
unit="%",
icon='mdi:sd',
json_value="fs_used_prcnt",
)),
(K_LD_CPU_USE, dict(
title="RPi CPU Use {}".format(rpi_hostname),
title="CPU Use",
topic_category="sensor",
no_title_prefix="yes",
unit="%",
icon=cpu_use_icon,
json_value=K_LD_CPU_USE_JSON,
)),
(K_LD_MEM_USED, dict(
title="RPi Mem Used {}".format(rpi_hostname),
title="Memory Used",
topic_category="sensor",
no_title_prefix="yes",
json_value="mem_used_prcnt",
Expand All @@ -1436,7 +1436,7 @@ def isAliveTimerRunning():
iconName = 'mdi:cog-counterclockwise'
detectorValues.update({
command: dict(
title='RPi {} {} Command'.format(command, rpi_hostname),
title=command,
topic_category='button',
no_title_prefix='yes',
icon=iconName,
Expand Down

0 comments on commit f4b309b

Please sign in to comment.