MycroftAI / skill-volume

Mycroft AI official Volume Skill - control the volume of your Device
https://mycroft.ai/skills
Apache License 2.0
10 stars 30 forks source link

fix handling when in/decreasing to x level #37

Closed krisgesling closed 5 years ago

krisgesling commented 5 years ago

If the device is currently set to volume level 5, and a user says: "increase volume to 8" The IncreaseVolume handler is triggered, volume is incremented by 1 and the new level is 6, not 8.

It looks like both the increase and set handlers match on two vocab files. So adding increase and decrease vocab as optional increases the match strength.

forslund commented 5 years ago

Works great. Merging