lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
571 stars 284 forks source link

broadlink RM device is no longer reachable #516

Open attilio700 opened 4 years ago

attilio700 commented 4 years ago

Hi all, i received the following messages: [2019-12-28 07:34:00] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2019-12-28 07:34:35] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2019-12-28 07:34:47] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2019-12-28 07:35:00] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered.

how can i solve this issue? thanks in advance

BereGabor commented 4 years ago

Hi,

I have a Broadlink RM3 Pro Plus v2 and i get this (or similar) error when i pressed learn RF and IR frequently. The broadlink can't handle the requests and crashed. The broadlink restart fixed the problem for me. (USB plug out and in)

My next tip is the IP address conflict or other ip/network problem: 192.168.1.10. This address (192.168.1.10) is from DHCP pool? The dhcp ip addresses use to be in the higher range. For example: 192.168.100-254

Check your DHCP network settings in router, and check the devices IP settings on your network (routers have function to list all devices on network with ip address).

If you have devices with fix ip address (NAS, TV...etc), you have to check this devices network settings.

kiwi-cam commented 4 years ago

Also, what's your Wifi like? These errors show up everytime a ping packet is dropped. I've overhauled this in this fork so only three consecutive dropped packets log this error.

Try running a ping from your homebridge server to the Broadlink device for a few minutes. If you're seeing packets drop there too then this is more of a network issue than it is a plugin issue.

lprhodes commented 4 years ago

Hey @attilio700 can you please update to the latest version of the plugin and re-send your logs, there were some changes around discovery (including not logging the error until several attempts have failed). More changes will be coming this weekend around the discovery code too.

attilio700 commented 4 years ago

hi, plugin updated to homebridge-broadlink-rm v3.6.18. here below log [2020-1-12 09:10:11] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-12 09:10:12] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2020-1-12 09:56:43] [Broadlink RM] grande getDoorCurrentState: 1 [2020-1-12 09:56:43] [Broadlink RM] grande getDoorTargetState: 1 [2020-1-12 09:56:43] [Broadlink RM] Tappagatto getDoorCurrentState: 0 [2020-1-12 09:56:43] [Broadlink RM] Tappagatto getDoorTargetState: 0 [2020-1-12 09:56:43] [Broadlink RM] piccolo getDoorCurrentState: 1 [2020-1-12 09:56:43] [Broadlink RM] piccolo getDoorTargetState: 1 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from casetta nuova at 480x270 [2020-1-12 10:05:15] [Camera ffmpeg] Snapshot from Casetta at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from cucina at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from davanti at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from giardino at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from piscina nuova at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from Terrazza at 480x270 [2020-1-12 10:05:26] [Camera-ffmpeg] Start streaming video from Terrazza with 640x360@132kBit [2020-1-12 10:05:26] [Camera-ffmpeg] Stopped streaming [2020-1-12 17:20:11] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-12 17:20:13] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered.

lprhodes commented 4 years ago

Thanks, where are you running home bridge from?

If Mac or RPi can you try running the following command please at the same time and sending through the logs for both homebridge and the command for the same timeframe?

ping 192.168.1.10

Sent from my iPhone

On 13 Jan 2020, at 3:38 am, attilio700 notifications@github.com wrote:

 hi, plugin updated to homebridge-broadlink-rm v3.6.18. here below log [2020-1-12 09:10:11] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-12 09:10:12] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2020-1-12 09:56:43] [Broadlink RM] grande getDoorCurrentState: 1 [2020-1-12 09:56:43] [Broadlink RM] grande getDoorTargetState: 1 [2020-1-12 09:56:43] [Broadlink RM] Tappagatto getDoorCurrentState: 0 [2020-1-12 09:56:43] [Broadlink RM] Tappagatto getDoorTargetState: 0 [2020-1-12 09:56:43] [Broadlink RM] piccolo getDoorCurrentState: 1 [2020-1-12 09:56:43] [Broadlink RM] piccolo getDoorTargetState: 1 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from casetta nuova at 480x270 [2020-1-12 10:05:15] [Camera ffmpeg] Snapshot from Casetta at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from cucina at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from davanti at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from giardino at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from piscina nuova at 480x270 [2020-1-12 10:05:15] [Camera-ffmpeg] Snapshot from Terrazza at 480x270 [2020-1-12 10:05:26] [Camera-ffmpeg] Start streaming video from Terrazza with 640x360@132kBit [2020-1-12 10:05:26] [Camera-ffmpeg] Stopped streaming [2020-1-12 17:20:11] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-12 17:20:13] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

attilio700 commented 4 years ago

i'm running homebridge on a raspberry PI3+ how can i do ping command at the same time?

attilio700 commented 4 years ago

and again today

pam_unix(sudo:session): session closed for user root [2020-1-13 17:49:22] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-13 17:49:23] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered. [2020-1-13 18:58:22] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) is no longer reachable. (192.168.1.10, Request timed out) [2020-1-13 18:58:23] [Broadlink RM] Broadlink RM device at 192.168.1.10 (B4::4:3::0D::D:1::0D::0:5) has been re-discovered.