Skip to content

Commit

Permalink
#64 cli hex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed Oct 10, 2021
1 parent 08039e2 commit 74598a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tplight.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ module.exports = yargs
}, argv => {
const color = hexToHsl(argv.color)
const bulb = new TPLSmartDevice(argv.ip)
bulb.power(true, argv.transition, { hue: color.h, saturation: color.s, brightness: color.l, color_temp: 0 })
bulb.power(true, argv.transition, { hue: color.h * 100, saturation: color.s * 100, brightness: color.l * 100, color_temp: 0 })
.then(r => argv.quiet || json(r))
.catch(handleError)
})
Expand Down

0 comments on commit 74598a1

Please sign in to comment.