I have had this error several times recently with the intergasincomfort plugin. with the set temp of thermostat to...
action. I might have a look when I have some free time, unless someone already pinpointed the defect…
-
Press MqttButton through rule: Cannot read property 'then' of undefined
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Need to analyze first, but my gut feel is this may be a defect in the ActionHandler or Device base classes if different specific implementations of these classes seem to experience the same issue. HeatingThermostat and ButtonsDevice are different implementations of the same parent class. My intergasincomfort and the mqtt inherit from these in turn.
Interestingly other implementations seem to be ok. If I am not mistaken, a commonality between the two plugins is network connectivity to other systems. This may be part of the circumstance triggering this error. Hurray! Nightmare to troubleshoot"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Thanks for investigating it. Maybe @mwittig can help you?
-
@kenci said in Press MqttButton through rule: Cannot read property 'then' of undefined:
We have also raised an issue in his repo at github.
Which one? Can you please provide more details.
Who is “we” by the way?"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
“we”, the users
-
@kenci Ok, thanks for the clarification
I had a look at the issue and I have filed a pull request with a candidate fix.
https://github.com/wutu/pimatic-mqtt/pull/37For the books:
@developer please note, action operations must always return a Promise"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig I’ll look at the intergas plugin, likely same cause then. Thanks for jumping in!
"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Hi, fixed in ver. 0.9.10.
Thx @mwittig
Pimatic = Smart Home
-
I tried to upgrade MQTT plugin from 0.9.7 to 0.9.10. The pimatic plugin page is not supporting this, because the latest version on the plugin page is 0.9.7. So I did a manual update.
On my plugin page the MQTT plugin is now labelled “compatibility unknown”.
The plugin seems to work, but any idea if this is a problem? -
@bertreb said in Press MqttButton through rule: Cannot read property 'then' of undefined:
The pimatic plugin page is not supporting this, because the latest version on the plugin page is 0.9.7. So I did a manual update.
Are you sure? On the web site it is showing the info for 0.9.10. So, the pimatic version manager should also pickup 0.9.10 via pimatic front end when searching for updates
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
You are right. Npm is showing the latest version. In my pimatic plugin page the version was 0.9.7 and no update for this plugin was available. So i installed the newest version manually and added the pimatic peerDependency in the plugins package.json (to remove the compatibilty label).
-
Hello, I am working with MQTT version 0.9.7 for 2 installations and no update is offered.
By, Jens.Pimatic, my hobby.
-
@jens Ok, seems like I also install the stuff manually as part of my docker testing. The issue has been fixed now and the plugin manager should pick up an update to v0.9.11
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@bertreb After updating mqtt version 0.9.7 to version v0.9.11 Pimatic cannot contact the mqtt broker.
I get the message “connection to Mqtt Broker default was closed” and “Reconnecting to MQTT Broker default”.
I also have a pi running Domoticz. This configuration has no problems using mqtt. Therfor i think there is a problem in the update of mqtt.Can some one help?
-
@hansjeu I’m not a maintainer of the plugin, but here are some thoughts on your situation. When you upgrade from 0.9.7 to 0.9.11 there are some changes that could cause your problem. You can check them at https://github.com/wutu/pimatic-mqtt/commits/development (starting at the commit of 12 september 2017).
I assume you restarted Pimatic after the upgrade You should also check the plugin settings. If you are using username/password and your security allows it, you could try allowing setting “allow_anonymous true” in the MQTT broker (in mosquitto.conf). This is just a fix to get it working again. The real answer/solution needs to come from one of the plugin contributors. -
Thanks Bertreb is was the password.
Greetings Hansjeu