Sennevds / system_sensors

Logging of system sensor specific for the RPI and sending them to a MQTT broker
MIT License
361 stars 112 forks source link

Callback API version 1 is deprecated #179

Closed xaquib666 closed 3 weeks ago

xaquib666 commented 1 month ago

Hello,

Callback API version 1 is deprecated. Can anyone help me to fix this issue?

image

Thanks!

TheRealFalseReality commented 1 month ago

Same here

sejtam commented 1 month ago

same here.

Mattiasselander commented 1 month ago

same

Mattiasselander commented 1 month ago
Skärmavbild 2024-08-13 kl  23 00 49
KayGundhardt commented 1 month ago

Hi folks,

same here :((

@Mattias Thanks for your comment although I am not sure what it means...? :)

Mattiasselander commented 1 month ago

it is no longer working with the update of poha as i understand. but it is integraded in HA now with https://www.home-assistant.io/integrations/systemmonitor/

KayGundhardt commented 1 month ago

Not really :( Your tool could handle an external MQTT client to be connected to HA... No way to repair this? ;(

Mattiasselander commented 1 month ago

i have no ide how to code, but i think if u could install paho 1.6.1 instedd of 2.x then maybe it will work.

the owner of the script maybe have a solution to update it for 2.0

KayGundhardt commented 1 month ago

Oh man - how stupid :D

I could have thought of that myself ... ;))

Now it connects and publishes the topics, but sadly no measured values:

Bildschirmfoto 2024-08-15 um 09 50 26
Mattiasselander commented 4 weeks ago

i dont understand why u dont use the integraded one image

KayGundhardt commented 4 weeks ago

Because I want to remotely monitor ANOTHER raspberry pis system over network, so NOT the HomeAssistant Host!Am 17.08.2024 um 20:46 schrieb Mattiasselander @.***>: i dont understand why u dont use the integraded one 5675A38A-3DB0-4A5C-9341-BEE3005D6A72.jpeg (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Mattiasselander commented 4 weeks ago

oh i understand ! then i don't know..

KayGundhardt commented 4 weeks ago

Anyone else maybe?With old Pago version I get connected to the MQTT broker and topics are published but according values are not… Any idea anyone?Help would be highly appreciated -thank you!!Am 17.08.2024 um 20:59 schrieb Mattiasselander @.***>: oh i understand ! then i don't know..

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Mattiasselander commented 4 weeks ago

try to remove the power sensor, have read alot about that

KayGundhardt commented 4 weeks ago

Like this?

  temperature: true
  display: true
  clock_speed: true
  fan_speed: true
  disk_use: true
  memory_use: true
  cpu_usage: true
  load_1m: true
  load_5m: true
  load_15m: true
  net_tx: "enp1s0" # true for all interfaces, otherwise the name of the interface
  net_rx: true # true for all interfaces, otherwise the name of the interface
  swap_usage: true
  power_status: false
  last_boot: true
  hostname: true
  host_ip: true
  host_os: true
  host_arch: true
  last_message: true
  updates: true
  wifi_strength: false
  wifi_ssid: false

Unfortunately it did not help :(

Mattiasselander commented 4 weeks ago

u get some logs on that?

KayGundhardt commented 4 weeks ago

No, unfortunately not: I'm still a complete noob… :)) But if you tell me how, I will gladly try to read out a log!

Mattiasselander commented 4 weeks ago

i am a noob to my friend :)

are u geting some error in settings>system>logs

KayGundhardt commented 4 weeks ago

No, this is all I can find about it in the logs:

2024-08-17T22:21:58:    system-sensors/sensor/geppetto-cam/availability (QoS 0)
2024-08-17T22:21:58: 14TfyeRtj4zuhSjSYamPeQ 0 system-sensors/sensor/geppetto-cam/availability
2024-08-17T22:21:58:    system-sensors/sensor/geppetto-cam/state (QoS 0)
2024-08-17T22:21:58: 14TfyeRtj4zuhSjSYamPeQ 0 system-sensors/sensor/geppetto-cam/state
Mattiasselander commented 4 weeks ago

i think this github i dead and i can't help u more.. u are on your on now..

KayGundhardt commented 4 weeks ago

Okay, thanks anyway.

If anyone else could help: help would be really appreciated
:)

TheRealFalseReality commented 3 weeks ago

Try installing glances if you can, it may not be as easy, but try using Docker, then use the HA integration for Glances to get it in your instance. However, I wanted to install this for a more lightweight component rather than glances, I like this repository but cannot install on anything else, for now.

Sennevds commented 3 weeks ago

Sorry all for the late response. I don't use this script as much anymore but I will try to update is

Sennevds commented 3 weeks ago

I've fixed it in the latest source.( btw this was only a warning the code worked without my changes so if you didn't receive any values in home assistant there was something else wrong)

KayGundhardt commented 3 weeks ago

Okay, thank you for the update! :) But if I can’t see any values (although the topics themselves are visible) on the broker, then it’s the client that either don’t get‘s the values from the system itself or does not publish them, right? Could you somehow tell me how I could get to a log that could help?

Sennevds commented 3 weeks ago

Could you open a new ticket with the logs your config and a screenshot of a mqtt client with the messages?

KayGundhardt commented 3 weeks ago

Okay, sure - thank you!Config and MQTT-Data are no problem. But where can I get the logs you need?Am 23.08.2024 um 15:45 schrieb Senne @.***>: Could you open a new ticket with the logs your config and a screenshot of a mqtt client with the messages?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>