Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Network Link State not updating #329

Open
rouloy opened this issue Nov 6, 2024 · 3 comments
Open

[BUG] Network Link State not updating #329

rouloy opened this issue Nov 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@rouloy
Copy link

rouloy commented Nov 6, 2024

Go Hass Agent Version
v10.4.0

Describe the bug
Network Link State is not updated properly

To Reproduce
Steps to reproduce the behaviour:

  1. Disconnect from ethernet
  2. No changes in sensors

Expected behaviour
After disconnectiong the ethernet connection, the sensor should switch to down

Screenshots
grafik
Logs
A log will be very helpful to look into this bug report. To get the log:

1:45PM DBG Subscriptions added to MQTT.
1:45PM DBG Listening for messages to publish to MQTT.
1:45PM DBG Home Assistant detected online.
1:45PM DBG Publishing volume change. volume_controller.volume=39
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Ip4Config value=/org/freedesktop/NetworkManager/IP4Config/5
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Dhcp4Config value=/org/freedesktop/NetworkManager/DHCP4Config/9
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Dhcp6Config value=/
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Ip6Config value=/org/freedesktop/NetworkManager/IP6Config/5
1:45PM DBG Sensor updated. sensor.name="Kabelgebundene Verbindung 1 Connection State" sensor.id=kabelgebundene_verbindung_1_connection_state sensor.state=Deactivating sensor.units=""
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Dhcp4Config value=/
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Default value=false
1:45PM DBG Unhandled property changed. connection="Kabelgebundene Verbindung 1" interface=org.freedesktop.NetworkManager.Connection.Active property=Devices value=[]
1:45PM DBG Unhandled property changed. connection=Treehouse interface=org.freedesktop.NetworkManager.Connection.Active property=Default value=true
1:45PM DBG Unmonitoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Could not monitor connection. linux.controller=sensor worker=network_connection_sensors error="could not create connection: could not determine connection type: SystemBus: unable to retrieve property org.freedesktop.NetworkManager.Connection.Active.Type from org.freedesktop.NetworkManager: Das Objekt existiert nicht am Pfad »/org/freedesktop/NetworkManager/ActiveConnection/10«"
1:45PM DBG Could not monitor connection. linux.controller=sensor worker=network_connection_sensors error="could not create connection: could not determine connection name: SystemBus: unable to retrieve property org.freedesktop.NetworkManager.Connection.Active.Id from org.freedesktop.NetworkManager: Das Objekt existiert nicht am Pfad »/org/freedesktop/NetworkManager/ActiveConnection/10«"
1:45PM DBG Could not monitor connection. linux.controller=sensor worker=network_connection_sensors error="could not create connection: could not determine connection name: SystemBus: unable to retrieve property org.freedesktop.NetworkManager.Connection.Active.Id from org.freedesktop.NetworkManager: Das Objekt existiert nicht am Pfad »/org/freedesktop/NetworkManager/ActiveConnection/10«"
1:45PM DBG Ignoring connection. connection=Treehouse
1:45PM DBG Could not monitor connection. linux.controller=sensor worker=network_connection_sensors error="could not create connection: could not determine connection name: SystemBus: unable to retrieve property org.freedesktop.NetworkManager.Connection.Active.Id from org.freedesktop.NetworkManager: Das Objekt existiert nicht am Pfad »/org/freedesktop/NetworkManager/ActiveConnection/10«"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Ignoring connection. connection="Kabelgebundene Verbindung 1"
1:45PM DBG Unhandled property changed. connection=Treehouse interface=org.freedesktop.NetworkManager.Connection.Active property=Default value=false
1:45PM DBG Ignoring connection. connection=Treehouse
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 IPv4 Address" sensor.id=enp0s13f0u1u4u4_ipv4_address sensor.state=192.168.1.206 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Kabelgebundene Verbindung 1 Connection State" sensor.id=kabelgebundene_verbindung_1_connection_state sensor.state=Offline sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Writes" sensor.id=nvme0n1_disk_writes sensor.state=13244 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Read Rate" sensor.id=nvme0n1_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Reads" sensor.id=nvme0n1_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Total Disk Reads" sensor.id=total_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk IOs In Progress" sensor.id=nvme0n1_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Write Rate" sensor.id=nvme0n1_disk_write_rate sensor.state=160 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk IOs In Progress" sensor.id=total_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Total Disk Write Rate" sensor.id=total_disk_write_rate sensor.state=160 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk Read Rate" sensor.id=total_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk Writes" sensor.id=total_disk_writes sensor.state=13244 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received" sensor.id=wlo1_bytes_received sensor.state=12225427 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received Throughput" sensor.id=wlo1_bytes_received_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent Throughput" sensor.id=wlo1_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received" sensor.id=enp0s13f0u1u4u4_bytes_received sensor.state=651702 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received Throughput" sensor.id=total_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received" sensor.id=total_bytes_received sensor.state=12877129 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent Throughput" sensor.id=enp0s13f0u1u4u4_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received Throughput" sensor.id=enp0s13f0u1u4u4_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent" sensor.id=enp0s13f0u1u4u4_bytes_sent sensor.state=431585 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent Throughput" sensor.id=total_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent" sensor.id=total_bytes_sent sensor.state=9744416 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent" sensor.id=wlo1_bytes_sent sensor.state=9312831 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Core 0 CPU Usage" sensor.id=core_0_cpu_usage sensor.state=1.3742844303772737 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 0 Frequency" sensor.id=cpufreq_core0_frequency sensor.state=1126245 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Total CPU Usage" sensor.id=total_cpu_usage sensor.state=1.3069744206295295 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 1 Frequency" sensor.id=cpufreq_core1_frequency sensor.state=1049730 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 1 CPU Usage" sensor.id=core_1_cpu_usage sensor.state=1.0947151279316447 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 4 CPU Usage" sensor.id=core_4_cpu_usage sensor.state=1.2639928106745857 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 2 Frequency" sensor.id=cpufreq_core2_frequency sensor.state=1223948 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 2 CPU Usage" sensor.id=core_2_cpu_usage sensor.state=1.3251967088864753 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 3 Frequency" sensor.id=cpufreq_core3_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 3 CPU Usage" sensor.id=core_3_cpu_usage sensor.state=1.335207857379962 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 4 Frequency" sensor.id=cpufreq_core4_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 5 CPU Usage" sensor.id=core_5_cpu_usage sensor.state=1.4329804273938354 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 6 CPU Usage" sensor.id=core_6_cpu_usage sensor.state=1.3397861810625322 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 6 Frequency" sensor.id=cpufreq_core6_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 5 Frequency" sensor.id=cpufreq_core5_frequency sensor.state=1137441 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 7 CPU Usage" sensor.id=core_7_cpu_usage sensor.state=1.2885429852938877 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="CPU Context Switch Rate" sensor.id=cpu_context_switch_rate sensor.state=3298 sensor.units=ctx/s
1:45PM DBG Sensor updated. sensor.name="Core 7 Frequency" sensor.id=cpufreq_core7_frequency sensor.state=1127426 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Processes Creation Rate" sensor.id=processes_creation_rate sensor.state=1 sensor.units=processes/s
1:45PM DBG Sensor updated. sensor.name="Processes Blocked" sensor.id=processes_blocked sensor.state=0 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Processes Running" sensor.id=processes_running sensor.state=1 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Writes" sensor.id=nvme0n1_disk_writes sensor.state=13244 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Read Rate" sensor.id=nvme0n1_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk Reads" sensor.id=total_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Reads" sensor.id=nvme0n1_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Write Rate" sensor.id=nvme0n1_disk_write_rate sensor.state=160 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk IOs In Progress" sensor.id=nvme0n1_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Total Disk Read Rate" sensor.id=total_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk IOs In Progress" sensor.id=total_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Total Disk Writes" sensor.id=total_disk_writes sensor.state=13244 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received" sensor.id=wlo1_bytes_received sensor.state=12225427 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Disk Write Rate" sensor.id=total_disk_write_rate sensor.state=160 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent Throughput" sensor.id=wlo1_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received" sensor.id=enp0s13f0u1u4u4_bytes_received sensor.state=651702 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received Throughput" sensor.id=wlo1_bytes_received_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent Throughput" sensor.id=enp0s13f0u1u4u4_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent" sensor.id=wlo1_bytes_sent sensor.state=9312831 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received Throughput" sensor.id=enp0s13f0u1u4u4_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received" sensor.id=total_bytes_received sensor.state=12877129 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent Throughput" sensor.id=total_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Blade Battery Energy" sensor.id=BAT0_battery_energy sensor.state=49.1106 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent" sensor.id=enp0s13f0u1u4u4_bytes_sent sensor.state=431585 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent" sensor.id=total_bytes_sent sensor.state=9744416 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Blade Battery Power" sensor.id=BAT0_battery_power sensor.state=8.02725 sensor.units=W
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received Throughput" sensor.id=total_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received" sensor.id=wlo1_bytes_received sensor.state=12225427 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Blade Battery Voltage" sensor.id=BAT0_battery_voltage sensor.state=13.187 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent Throughput" sensor.id=wlo1_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Sent" sensor.id=wlo1_bytes_sent sensor.state=9312831 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="wlo1 Bytes Received Throughput" sensor.id=wlo1_bytes_received_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received" sensor.id=enp0s13f0u1u4u4_bytes_received sensor.state=651702 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Received Throughput" sensor.id=enp0s13f0u1u4u4_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent" sensor.id=enp0s13f0u1u4u4_bytes_sent sensor.state=431585 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received" sensor.id=total_bytes_received sensor.state=12877129 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 Bytes Sent Throughput" sensor.id=enp0s13f0u1u4u4_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent" sensor.id=total_bytes_sent sensor.state=9744416 sensor.units=B
1:45PM DBG Sensor updated. sensor.name="Total Bytes Received Throughput" sensor.id=total_bytes_received_throughput sensor.state=189 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="Total Bytes Sent Throughput" sensor.id=total_bytes_sent_throughput sensor.state=0 sensor.units=B/s
1:45PM DBG Sensor updated. sensor.name="enp0s13f0u1u4u4 IPv4 Address" sensor.id=enp0s13f0u1u4u4_ipv4_address sensor.state=192.168.1.206 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Writes" sensor.id=nvme0n1_disk_writes sensor.state=13264 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Read Rate" sensor.id=nvme0n1_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Reads" sensor.id=nvme0n1_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk IOs In Progress" sensor.id=nvme0n1_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Total Disk Reads" sensor.id=total_disk_reads sensor.state=29428 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Total Disk IOs In Progress" sensor.id=total_disk_ios_in_progress sensor.state=0 sensor.units=ops
1:45PM DBG Sensor updated. sensor.name="Total Disk Writes" sensor.id=total_disk_writes sensor.state=13264 sensor.units=requests
1:45PM DBG Sensor updated. sensor.name="Total Disk Write Rate" sensor.id=total_disk_write_rate sensor.state=48 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total Disk Read Rate" sensor.id=total_disk_read_rate sensor.state=0 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Nvme0n1 Disk Write Rate" sensor.id=nvme0n1_disk_write_rate sensor.state=48 sensor.units=kB/s
1:45PM DBG Sensor updated. sensor.name="Total CPU Usage" sensor.id=total_cpu_usage sensor.state=1.3070595028513636 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 0 CPU Usage" sensor.id=core_0_cpu_usage sensor.state=1.3810660054573125 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 0 Frequency" sensor.id=cpufreq_core0_frequency sensor.state=783146 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 1 Frequency" sensor.id=cpufreq_core1_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 3 CPU Usage" sensor.id=core_3_cpu_usage sensor.state=1.3328094424841763 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 2 Frequency" sensor.id=cpufreq_core2_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 1 CPU Usage" sensor.id=core_1_cpu_usage sensor.state=1.0947868220825467 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 2 CPU Usage" sensor.id=core_2_cpu_usage sensor.state=1.3239826893738913 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 3 Frequency" sensor.id=cpufreq_core3_frequency sensor.state=755674 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 4 CPU Usage" sensor.id=core_4_cpu_usage sensor.state=1.2626645959590062 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 4 Frequency" sensor.id=cpufreq_core4_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 5 CPU Usage" sensor.id=core_5_cpu_usage sensor.state=1.43020038372179 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Core 5 Frequency" sensor.id=cpufreq_core5_frequency sensor.state=916833 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 6 Frequency" sensor.id=cpufreq_core6_frequency sensor.state=899013 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 7 Frequency" sensor.id=cpufreq_core7_frequency sensor.state=400000 sensor.units=kHz
1:45PM DBG Sensor updated. sensor.name="Core 7 CPU Usage" sensor.id=core_7_cpu_usage sensor.state=1.2863425835830768 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="CPU Context Switch Rate" sensor.id=cpu_context_switch_rate sensor.state=2472 sensor.units=ctx/s
1:45PM DBG Sensor updated. sensor.name="Core 6 CPU Usage" sensor.id=core_6_cpu_usage sensor.state=1.3435431719758604 sensor.units=%
1:45PM DBG Sensor updated. sensor.name="Processes Running" sensor.id=processes_running sensor.state=1 sensor.units=""
1:45PM DBG Sensor updated. sensor.name="Processes Creation Rate" sensor.id=processes_creation_rate sensor.state=0 sensor.units=processes/s
1:45PM DBG Sensor updated. sensor.name="Processes Blocked" sensor.id=processes_blocked sensor.state=0 sensor.units=""
1:45PM DBG Unhandled property changed. connection=Treehouse interface=org.freedesktop.NetworkManager.Connection.Active property=Default value=true
1:45PM DBG Ignoring connection. connection=Treehouse

Desktop (please complete the following information):

  • OS: Linux
  • Distribution Manjaro
  • Version Linux 6.10.13-3-MANJARO

Additional context
The Laptop has only a wifi card built-in, the ethernet is connected via a thunderbolt dock

@rouloy rouloy added the bug Something isn't working label Nov 6, 2024
@joshuar
Copy link
Owner

joshuar commented Nov 10, 2024

Hey @rouloy that's odd. The *_link_state sensor gets its values from netlink rather than NetworkManager (though these should agree). What is the link state listed with the command:

ip link show

Does the link state in the output of that command match what the agent is reporting?

@rouloy
Copy link
Author

rouloy commented Nov 14, 2024

Hi @joshuar thanks for your explanation.
I gone through testing and it seems like there are two sides to this issue.
ip link shows the correct "up" state when the connection is up and running, the wrong "up" state when the connection is disabled and nothing when the thunderbolt dock is gone.

What happens with the sensor is I think only problematic when the connection is gone and the hass agent doesn't get an update anymore from ip link. So it stays up forever, even though the connection is not present anymore.

To be honest, I think it is good to not just delete the sensor, but maybe after a grace period without any "up" status it should switch to "down" or "dormant"?

So for me not a bug anymore, but a feature request :D
Bildschirmfoto vom 2024-11-14 12-48-01

@joshuar
Copy link
Owner

joshuar commented Nov 18, 2024

Hey @rouloy thanks for the additional details. I think I've uncovered the bug here. I've hopefully fixed it with 27919b4 (and possibly 813485e).

If you are keen, you can try out the pre-release build. On this page, down the bottom in the Artifacts section, download the build-linux-ARCH-* archive that is the appropriate architecture for your device (usually amd64). Inside that archive will be packages for all distros and you can use the appropriate one.

If you do try out the pre-release, let me know if it fixes the issue for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants