seydx / homebridge-printer

Homebridge plugin for ipp (AirPrint) capable printer
MIT License
42 stars 4 forks source link

Contact Sensor #7

Closed ashleymoat closed 3 years ago

ashleymoat commented 3 years ago

Contact sensor not working for me. I've read your Pull Request regarding this but not 100% what I need to do and how. Some tips would be really good on how I get this part working. Thanks

fototeddy commented 3 years ago

look in the switch.js file around line 101 I think and replace

let markerLevel = attributes['marker-levels'];

with let markerLevel = [attributes['marker-levels']];

also around line 46 replace let markers = attributes['marker-names'];

with

let markers = [attributes['marker-names']];

that should be everything in my pull request and made it working for me

seydx commented 3 years ago

fixed in v1.0.1