Closed russellquinn closed 9 months ago
To confirm, I have Zones 2, 3, 4 disabled in Rainbird too. See attached.
This feels like a classic off-by-one error somewhere in an array lookup?
Can your turn on request in the config so we can see what the plugin is sending to the controller?
Then provide logs
[1/25/2024, 10:31:41 AM] Loaded plugin: homebridge-rainbird@1.11.3 [1/25/2024, 10:31:41 AM] Registering platform 'homebridge-rainbird.RainBird' [1/25/2024, 10:31:41 AM] --- [1/25/2024, 10:31:41 AM] Loading 2 platforms... [1/25/2024, 10:31:41 AM] [RainBird] Initializing RainBird platform... [1/25/2024, 10:31:41 AM] [RainBird] Using Config Logging: debug [1/25/2024, 10:31:41 AM] [RainBird] [DEBUG] Finished initializing platform: RainBird [1/25/2024, 10:31:41 AM] [RainBird] [DEBUG] Using Default Refresh Rate. [1/25/2024, 10:31:41 AM] [RainBird] [DEBUG] Using Default Push Rate. [1/25/2024, 10:31:41 AM] [RainBird] [DEBUG] Config OK [1/25/2024, 10:31:41 AM] [RainBird] Loading accessory from cache: ESP-TM2 [1/25/2024, 10:31:41 AM] [RainBird] [DEBUG] Executed didFinishLaunching callback Setup Payload: X-HM://0024VAPIPNLR3 Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ [REDACTED] │
└────────────┘
[1/25/2024, 10:31:41 AM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 2D75) is running on port 51199. [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [2] [ModelAndVersionRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [130,0,5,2,9] [ModelAndVersionResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [5] [SerialNumberRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [133,72,177,166,248,73,162,0,0] [SerialNumberResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [3,0] [AvailableZonesRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [131,0,15,0,0,0] [AvailableZonesResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [72] [IrrigationStateRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [200,1] [IrrigationStateResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [18] [ControllerDateGetRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [146,25,23,232] [ControllerDateGetResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [16] [ControllerTimeGetRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [144,10,31,0] [ControllerTimeGetResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [59,0] [ProgramZoneStateRequest] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Response: [187,0,0,0,0,0,0,0,0,255,0,0] [ProgramZoneStateResponse] [1/25/2024, 10:31:41 AM] [RainBird] [10.0.0.222] Request: [62] [RainSensorStateRequest] [1/25/2024, 10:31:42 AM] [RainBird] [10.0.0.222] Response: [190,1] [RainSensorStateResponse] [1/25/2024, 10:31:42 AM] [RainBird] Rain Sensor: SetPoint reached [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] {"modelNumber":5,"model":"ESP-TM2","version":"2.9","serialNumber":"48b1a6f849a200","zones":[1,2,3,4]} [1/25/2024, 10:31:42 AM] [RainBird] Model: ESP-TM2, [Version: 2.9, Serial Number: 48b1a6f849a200, Zones: [1,2,3,4]] [1/25/2024, 10:31:42 AM] [RainBird] Restoring existing accessory from cache: ESP-TM2 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem: ESP-TM2 Using Device Config Logging: debug [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem: ESP-TM2 Using Platform Config refreshRate: 300 [1/25/2024, 10:31:42 AM] [RainBird] IrrigationSystem ESP-TM2 Config: {"ipaddress":"[REDACTED]","password":"[REDACTED]","showRainSensor":false,"showValveSensor":false,"showProgramASwitch":false,"showStopIrrigationSwitch":false,"includeZones":"1","syncTime":true,"showRequestResponse":true,"logging":"debug","showProgramBSwitch":false,"showProgramCSwitch":false,"showProgramDSwitch":false,"showZoneValve":false,"showDelayIrrigationSwitch":false,"irrigationDelay":1,"minValueRemainingDuration":0,"maxValueRemainingDuration":3600} [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Configure Irrigation Service [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Load Valve Service for Zone 1 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Configure Characteristics for Zone 1 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Load Valve Service for Zone 2 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Configure Characteristics for Zone 2 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Load Valve Service for Zone 3 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Configure Characteristics for Zone 3 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Load Valve Service for Zone 4 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Configure Characteristics for Zone 4 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem: ESP-TM2, Active: 0, InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 1, Active: 0, InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 2, Active: 0, InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 3, Active: 0, InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 4, Active: 0, InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic Active: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic Active: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic SetDuration: 300 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic Active: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic SetDuration: 300 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic IsConfigured: 1 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic Active: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic SetDuration: 300 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic Active: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic InUse: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic SetDuration: 300 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:31:42 AM] [RainBird] [DEBUG] Irrigation System uuid: 10.0.0.222-ESP-TM2-48b1a6f849a200, (6e4ef522-d35e-4e77-adfc-237c657b279e) [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2, Valve: 2, Set Active: 1 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2, pushChanges: [Valve: 2, Active: 1, SetDuration: 300] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Request: [59,0] [ProgramZoneStateRequest] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Response: [187,0,0,0,0,0,0,0,0,255,0,0] [ProgramZoneStateResponse] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Request: [62] [RainSensorStateRequest] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Response: [190,1] [RainSensorStateResponse] [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem: ESP-TM2, Active: 1, InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 1, Active: 0, InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 2, Active: 1, InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 3, Active: 0, InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 4, Active: 0, InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic Active: 1 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic Active: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic Active: 1 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic IsConfigured: 1 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic Active: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic Active: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic InUse: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:00 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:00 AM] [RainBird] Zone 2: Start [Duration: 00:05:00] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Request: [57,0,2,5] [RunZoneRequest] [1/25/2024, 10:32:00 AM] [RainBird] [10.0.0.222] Response: [1,57] [AcknowledgedResponse] [1/25/2024, 10:32:02 AM] [RainBird] [10.0.0.222] Request: [59,0] [ProgramZoneStateRequest] [1/25/2024, 10:32:02 AM] [RainBird] [10.0.0.222] Response: [187,0,1,0,1,43,0,0,2,255,0,1] [ProgramZoneStateResponse] [1/25/2024, 10:32:02 AM] [RainBird] [10.0.0.222] Request: [62] [RainSensorStateRequest] [1/25/2024, 10:32:02 AM] [RainBird] [10.0.0.222] Response: [190,1] [RainSensorStateResponse] [1/25/2024, 10:32:02 AM] [RainBird] [10.0.0.222] Request: [59,1] [ProgramZoneStateRequest] [1/25/2024, 10:32:03 AM] [RainBird] [10.0.0.222] Response: [187,1,2,1,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] [ProgramZoneStateResponse] [1/25/2024, 10:32:03 AM] [RainBird] Zone 2: Running [Time Remaining: 00:04:59] [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem: ESP-TM2, Active: 1, InUse: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 1, Active: 0, InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 2, Active: 1, InUse: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 3, Active: 0, InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve: 4, Active: 0, InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic Active: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic InUse: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem ESP-TM2 updateCharacteristic RemainingDuration: 299 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic Active: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 1 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic Active: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic InUse: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic IsConfigured: 1 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 2 updateCharacteristic RemainingDuration: 299 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic Active: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 3 updateCharacteristic RemainingDuration: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic Active: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic InUse: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic SetDuration: 300 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic IsConfigured: 0 [1/25/2024, 10:32:03 AM] [RainBird] [DEBUG] IrrigationSystem Valve 4 updateCharacteristic RemainingDuration: 0
Hi, any thoughts on this? I can try and debug myself, but if you have any immediate insight that might point me in the right direction that would be very helpful. Thanks.
Hi @russellquinn, sorry for the delay getting back to you. I'll take a look into this issue on the weekend.
Thank you, I appreciate it!
Hi @russellquinn,
The includeZones
config option only has an effect if the "Show Zones as Valve accessories" is turned on which it's not in your case.
For the Irrigation System accessory it looks like you manually disabled 3 of the 4 zones is that correct?
On the initial creation of the accessory the zones all get created with the same name which makes it difficult to know which zones are which. I think this is a recent bug with the iOS Home app as earlier versions didn't do this.
What I suspect has happened is that you've named a zone as "Zone 1" but it's actually zone 2. Try going through each zone one by one and enable it then start it until you find the one that corresponds to Zone 1.
Thanks for the reply. Ah, so zones get listed in a random order (not necessarily sequentially) and they're all named "Rain Bird Sprinklers"? 😵💫
That's correct. Each zone's name seems to default to the Irrigation System's name even though the plugin sets the name to "Zone n". The zones are sorted alphanumerically but as they all have the same name they could be in any order.
Right. I finally got it figured out, but it's kind of a mess in HomeKit right now. I hope they fix it soon. Might be worth putting a big note in the README about this, because it's kinda unusable unless you know about the zone issue. Thanks for your help!
Right. I finally got it figured out, but it's kind of a mess in HomeKit right now. I hope they fix it soon. Might be worth putting a big note in the README about this, because it's kinda unusable unless you know about the zone issue. Thanks for your help!
We will add to readme and close this issue, once it is added.
Will be on readme when new version is merged.
Describe The Bug
I have an ESP-TM2. I only use one of its 4 supported zones. I have homebridge-rainbird set up in its simplest state with no other accessories turned on, so I just get one irrigation device in HomeKit. When I tap this accessory, I get a single switch appear for Zone 1. So far so good. But, when I start irrigation, it runs Zone 2. I can't work out how to run Zone 1.
To Reproduce
Install homebridge-rainbird, configure with IP Address, password, and Zones To Include = 1 only. All other options disabled.
Expected behavior
An irrigation device appears in HomeKit, with Zone 1, which allows me to Start/Stop Zone 1.
Relevant log output
Config for homebridge-rainbird
Screenshots
Device & Model
ESP-TM2
Node.js Version
v20.11.0
NPM Version
v10.2.4
Homebridge Version
v1.7.0
Homebridge Rainbird Plugin Version
v1.11.3
Homebridge Config UI X Plugin Version
v4.55.1
Operating System
macOS Sonoma 14.3