Seems I havn’t tested good enough this time.
When I try to push a button in Pimatic over HAss I am getting this error messages:
error [pimatic]: An uncaught exception occurred: TypeError: Cannot read property 'handleMessage' of undefined
at MqttClient._this.client.on._this.clientMessageHandler (/home/ortin/pimatic-app/node_modules/pimatic-hass/pimatic-hass.coffee:170:37)
at MqttClient.emit (events.js:198:13)
at MqttClient._handlePublish (/home/ortin/pimatic-app/node_modules/mqtt/lib/client.js:1162:12)
at MqttClient._handlePacket (/home/ortin/pimatic-app/node_modules/mqtt/lib/client.js:351:12)
at work (/home/ortin/pimatic-app/node_modules/mqtt/lib/client.js:283:12)
at Writable.writable._write (/home/ortin/pimatic-app/node_modules/mqtt/lib/client.js:294:5)
at doWrite (/home/ortin/pimatic-app/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/home/ortin/pimatic-app/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/home/ortin/pimatic-app/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:709:20)
at Socket.emit (events.js:198:13)
at Socket.emit (/home/ortin/pimatic-app/node_modules/pimatic/startup.coffee:64:24)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
This is most probably a bug in pimatic or in a module, please report it!
Switches are working, they are just a bit lazy in their reaction. Variable from Pimatic are displayed in HAss. Unfortunately there is not debug when I press a button which I could provide for analysis.
When I press the button on Pimatic side I can see the expected reaction (related switch in HAss changes to on for 5 seconds) on HAss side.
I moved my HAss playground to a new installation, so this could be also the reason for the behavior… don’t know.
Can someone please verify if buttons still working with the latest hass plugin version?