Code Monkey home page Code Monkey logo

Comments (11)

mark007 avatar mark007 commented on June 26, 2024 1

Will do. Will report back asap

from core.

jpbede avatar jpbede commented on June 26, 2024 1

You're welcome! Thanks for debugging

from core.

home-assistant avatar home-assistant commented on June 26, 2024

Hey there @jpbede, mind taking a look at this issue as it has been labeled with an integration (ping) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of ping can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign ping Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


ping documentation
ping source
(message by IssueLinks)

from core.

jpbede avatar jpbede commented on June 26, 2024

Could you please check the log? Under normal circumstances, the sensor should still be "disconnected".
Unavailable should occur only when the system can't resolve the hostname or something bad happens.

from core.

mark007 avatar mark007 commented on June 26, 2024

Hi, thanks for the fast reply.

Yeah I can't see anything in my logs that indicate anything is different to before. I run an automation to force update all of my ping sensors every second which has been working great. It does mean I see these in the logs for devices that are powered off for some time.

But those were also there before.

Logger: homeassistant.helpers.entity_component
Source: helpers/entity_component.py:61
First occurred: 11 June 2024 at 22:36:22 (199914 occurrences)
Last logged: 09:15:40

Forced update failed. Entity binary_sensor.upstairs_bathroom_2_light_pingable not found.
Forced update failed. Entity binary_sensor.work_laptop_pingable not found.

Is the new raised exception in the latest ping code somehow causing it. I always ping the ips directly so there should be no DNS involved.

from core.

jpbede avatar jpbede commented on June 26, 2024

Could you please turn on the debug log for the ping integration?

from core.

mark007 avatar mark007 commented on June 26, 2024

OK for one particular ip, my living room pc, where it used to show as disconnected, its now showing as Unavailable. Heres the log entries containing this IP after enabling DEBUG in the HA UI for the ping integration.

# cat home-assistant.log | grep 192.168.8.54
2024-06-12 09:38:42.511 DEBUG (MainThread) [homeassistant.components.ping.helpers] Pinging 192.168.8.54 with: `ping -n -q -c 1 -W1 192.168.8.54`
2024-06-12 09:38:43.517 DEBUG (MainThread) [homeassistant.components.ping.helpers] Output of command: `ping -n -q -c 1 -W1 192.168.8.54`, return code: 1:
b'PING 192.168.8.54 (192.168.8.54) 56(84) bytes of data.\n\n--- 192.168.8.54 ping statistics ---\n1 packets transmitted, 0 received, 100% packet loss, time 0ms\n\n'
2024-06-12 09:38:43.517 DEBUG (MainThread) [homeassistant.components.ping.coordinator] Finished fetching Ping 192.168.8.54 data in 1.007 seconds (success: False)
2024-06-12 09:40:03.751 DEBUG (MainThread) [homeassistant.components.ping.helpers] Pinging 192.168.8.54 with: `ping -n -q -c 1 -W1 192.168.8.54`
2024-06-12 09:40:04.756 DEBUG (MainThread) [homeassistant.components.ping.helpers] Output of command: `ping -n -q -c 1 -W1 192.168.8.54`, return code: 1:
b'PING 192.168.8.54 (192.168.8.54) 56(84) bytes of data.\n\n--- 192.168.8.54 ping statistics ---\n1 packets transmitted, 0 received, 100% packet loss, time 0ms\n\n'
2024-06-12 09:40:04.757 DEBUG (MainThread) [homeassistant.components.ping.coordinator] Finished fetching Ping 192.168.8.54 data in 1.005 seconds (success: False)

from core.

mark007 avatar mark007 commented on June 26, 2024

When I check the homeassistant UI for these ping entities, they mention

'This entity is no longer being provided by the ping integration. If the entity is no longer in use, delete it in settings.'

from core.

jpbede avatar jpbede commented on June 26, 2024

Okay, thanks, that helped 👍 Will fix this later

from core.

mark007 avatar mark007 commented on June 26, 2024

Thanks a lot for the super fast response!

from core.

nbarrientos avatar nbarrientos commented on June 26, 2024

Thanks for fixing this, having ping broken was very annoying :/

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.