Here is part of translation work from https://github.com/kraih/kefctl , as I am not a perl guy, I just translate it to golang for my home automation project, and in case my speaker control get lost in the future.
API in used are tested on firmware version:p20.5202205110.105243.