ioBroker / ioBroker.vis.cordova

Cordova APP for ioBroker.vis
Other
16 stars 7 forks source link

Add brightness control #30

Closed peak3d closed 4 years ago

peak3d commented 5 years ago

This PR adds display brightness control via vis.[#].[app].brightness.value DPT

See: https://www.npmjs.com/package/cordova-plugin-brightness

Values from 0->100 currently control the brightness, values < 0 fall back to system brightness. There are deep dark modes possible on android, this will be added later

Edit: I'm from C++ side, because of that I'm open for corrections / lessons how to implement JS