Closed jarz closed 1 year ago
I'll have a PR for this and another lamp-related issue in a bit.
Should be quick...you can do:
switchService.updateCharacteristic(this.hap.Characteristic.On, (this.accessory.context.lampState as boolean) === true);
I pushed an update to GH...if you want to give it a test, I'll get it published along with a couple of other minor things later today. Good to hear from you @jarz 😄
👍 -- works on my test instance.
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.
Describe The Problem: Homebridge logs the following error when processing a lamp accessory:
This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://homebridge.io/w/JtMGR for more info.
To Reproduce: Start/restart Homebridge with a lamp accessory connected to the MyQ account.
Logs:
Homebridge Configuration: N/A
Screenshots: N/A
Environment:
homebridge/homebridge@latest