lprhodes / homebridge-apple-tv

Apple TV 4th & 5th gen plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
105 stars 15 forks source link

Multiple ATV and "defaultSwitchesIncludeATVName": true results in wrong labeling #40

Open hroman73 opened 5 years ago

hroman73 commented 5 years ago

I have an ATV in the living room and one in the Bedroom. Configuration with the option:

"defaultSwitchesIncludeATVName": true

results in wrong labels:

[2018-9-8 01:11:37] [Apple TV] Mic/Siri (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Menu (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Select (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] TV/Home (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Up (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] TV/Home (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Sleep (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Mic/Siri (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Down (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Left (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Right (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Pause (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Right (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Pause (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Up (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Play (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Sleep (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Left (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Play (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Down (Living Room) (Master Bedroom) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Menu (Living Room) getSwitchState: false
[2018-9-8 01:11:37] [Apple TV] Select (Living Room) getSwitchState: false