this error is gone, next error solved by putting ‘super’ before the register method. new error is
22:20:49.912 [pimatic] TypeError: Cannot read property 'on' of undefined
22:20:49.912 [pimatic]> at HarmonyHub.registerStateDigestHandler (/home/ubuntu/pimatic-dev/node_modules/pimatic-harmonyhub/harmonyhub.coffee:155:19)
some googling says this is because the event function in harmonyclient.js has no return value.
function onStateDigest (stateDigest) {
debug('received state digest')
this.emit('stateDigest', stateDigest)
}
as far as i can see i can’t get the result i want without any changes in harmonyclient.js, am i right?