bloomkd46 / homebridge-iRobot

A homebridge plugin for controlling iRobot devices
Apache License 2.0
61 stars 14 forks source link

Support Request: UDP Port(s) to Open #139

Open metalshark opened 2 years ago

metalshark commented 2 years ago

Describe Your Problem:

Unless I open all UDP ports on the server to the IP address of the Roomba I get the error UDP Disabled.

Expected behavior:

Knowing the exact port number to open on the server and it always requiring that same port each time.

Logs:

[iRobot] Failed To Configure Device: {"password":"*","sku":"e515440","softwareVer":"3.4.67+100","name":"Roomba","cap":{"ota":1,"eco":1,"svcConf":1},"svcDeplId":"v007","user_cert":false,"blid":"*"} 
With error: UDP Disabled

Config:

{
    "name": "iRobot",
    "email": "*",
    "password": "*",
    "manualDiscovery": false,
    "lowBattery": 20,
    "offAction": "pause:dock",
    "status": "cycle:clean",
    "platform": "iRobotPlatform"
}

Node Version:

16.16.0

NPM Version:

8.11.0

Homebridge Version:

1.5.0

Plugin Version:

3.0.0-beta.16

Operating System:

Other

metalshark commented 2 years ago

If it's possible to know the incoming UDP port numbers required, or limit/fix them for firewall rules that'd be amazing, please.

bloomkd46 commented 2 years ago

What it’s doing if you don’t specify a Roomba ip address is a udp broadcast so that it pings every device and recognizes a Roomba response UDP line

metalshark commented 2 years ago

It has an IP under devices (192.168.75.99) unless I'm (likely) missing something image am having to use the following rule on the Synology (Homebridge server) at present image as cannot determine the UDP port the Roomba needs to talk back on.

senorshaun commented 2 years ago

this is built off of dorita980, which uses port 8883. make sure your firewall has bi directional rules set up (rule 1: homebridge ip -> Roomba ip on port 8883, rule 2: Roomba ip -> homebridge ip on port 8883).

bloomkd46 commented 1 year ago

Please try the latest beta: npm