jimmyeao / PC2MQTT

1 stars 0 forks source link

Unknown sensors #2

Open mhoogenbosch opened 7 months ago

mhoogenbosch commented 7 months ago

The program is connected:

image

But sensors stay empty:

image

Last logs:

2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for cpu_usage
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for total_ram
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for free_ram
2024-04-04 23:10:59.111 +02:00 [DBG] Published auto-discovery config for used_ram
2024-04-04 23:10:59.175 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:10:59.175 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:05.808 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:05.808 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:10.817 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:10.817 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:15.832 +02:00 [INF] Failed to connect: Error while connecting with host '192.168.20.72:1883:1883'.
2024-04-04 23:11:15.832 +02:00 [INF] Disconnected from MQTT broker.
2024-04-04 23:11:19.868 +02:00 [DBG] SaveSettings_Click: Save Settings ClickedPC2MQTT.AppSettings
2024-04-04 23:11:19.875 +02:00 [DBG] SetStartupAsync: Startup options set
2024-04-04 23:11:19.885 +02:00 [DBG] SaveSettingsAsync: MQTT settings have changed. Reconnecting MQTT client...
2024-04-04 23:11:37.064 +02:00 [INF] Logger Created
2024-04-04 23:11:37.125 +02:00 [DBG] Set Folder Path to C:\Users\MHOOGEN82\AppData\Local\PC2MQTT
2024-04-04 23:11:37.254 +02:00 [DBG] Settings file path is C:\Users\MHOOGEN82\AppData\Local\PC2MQTT\settings.json
2024-04-04 23:11:37.569 +02:00 [INF] MQTT client initialized.
2024-04-04 23:11:37.597 +02:00 [INF] MQTT client started.
2024-04-04 23:11:37.598 +02:00 [INF] MQTT event handlers set up.
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for cpu_usage
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for total_ram
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for free_ram
2024-04-04 23:11:37.665 +02:00 [DBG] Published auto-discovery config for used_ram
2024-04-04 23:11:37.696 +02:00 [INF] Connected to MQTT broker.
jimmyeao commented 7 months ago

hmm. what happens if you restart the app?

mhoogenbosch commented 7 months ago

Nothing:

New logs:

2024-04-06 22:09:00.697 +02:00 [INF] Logger Created
2024-04-06 22:09:00.795 +02:00 [DBG] Set Folder Path to C:\Users\MHOOGEN82\AppData\Local\PC2MQTT
2024-04-06 22:09:01.004 +02:00 [DBG] Settings file path is C:\Users\MHOOGEN82\AppData\Local\PC2MQTT\settings.json
2024-04-06 22:09:01.768 +02:00 [INF] MQTT client initialized.
2024-04-06 22:09:02.067 +02:00 [INF] MQTT client started.
2024-04-06 22:09:02.068 +02:00 [INF] MQTT event handlers set up.
2024-04-06 22:09:02.172 +02:00 [DBG] Published auto-discovery config for cpu_usage
2024-04-06 22:09:02.173 +02:00 [DBG] Published auto-discovery config for total_ram
2024-04-06 22:09:02.174 +02:00 [DBG] Published auto-discovery config for free_ram
2024-04-06 22:09:02.175 +02:00 [DBG] Published auto-discovery config for used_ram
2024-04-06 22:09:02.208 +02:00 [INF] Connected to MQTT broker.

When checking with MQTT explorer they do show:

image

I'll try and remove them and readd

mhoogenbosch commented 7 months ago

Removed / restarted a couple of times. Also removed the prefix. Then it enteres the hostname of the laptop as prefix.

image

Something wrong in the connection to HA. Aagina in MQTT-explorer it shows.