I think you need at least Node 4.9.1
-
[solved] not able to do a simple pimatic installation on raspi 3B+
-
I have been checking my old system and the new install.
The only difference is the mqtt plugin have been updated from 12 to 13 in the new.
Everything else is the same. Same stretch, same pimatic version, same node etc. Only mqtt plugin have changed.
-
Hmmm…
No can’t really think of anything?
I have tested the mqtt server installed, it works as it should. I have tried isolating it from my network. It keeps failing every time when booting the mqtt plugin. Everything else loads as it should.
It is running on raspberry pi model b -
@bertreb said in [solved] not able to do a simple pimatic installation on raspi 3B+:
I’m using on one of my pi’s a 3B+ with stretch, node 4.6.2, npm 2.15.12 and mqtt 0.9.13, without install or restart errors. So what else could be different?
Hi, I did a fresh pimatic and mqtt install on the same setup i’ve already running.
Now i’m getting an errror like @simonbovepi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js 10:17:52.040 2019-12-31 Tuesday 10:17:56.743 [pimatic] Starting pimatic version 0.9.54 10:17:56.753 [pimatic] Node.js version 4.6.2 10:17:56.755 [pimatic] OpenSSL version 1.0.2j 10:17:58.544 [pimatic, ppm] 2.15.12 10:17:58.584 [pimatic] Loading plugin: "pimatic-cron" (0.8.8) 10:17:58.974 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16) 10:17:59.601 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13) 10:17:59.841 [pimatic] Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 10:17:59.877 [pimatic-cron] the time is: Tue Dec 31 2019 10:17:59 GMT+0100 (CET) 10:18:00.267 [pimatic-mobile-frontend] packing static assets 10:18:00.580 [pimatic-mobile-frontend] packing static assets finished 10:18:00.589 [pimatic-mobile-frontend] rendering html 10:18:07.035 [pimatic-mobile-frontend] rendering html finished 10:18:07.084 [pimatic] Listening for HTTP-request on port 80...
Next test is fresh install on node 4.9.1
There is the error again, but now after the first device was installed.pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js 10:49:27.057 2019-12-31 Tuesday 10:49:31.680 [pimatic] Starting pimatic version 0.9.54 10:49:31.690 [pimatic] Node.js version 4.9.1 10:49:31.692 [pimatic] OpenSSL version 1.0.2o 10:49:33.655 [pimatic, ppm] 2.15.12 10:49:33.697 [pimatic] Loading plugin: "pimatic-cron" (0.8.8) 10:49:34.077 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16) 10:49:34.697 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13) coffee-cache: compiling coffee-script file "mqtt.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-switch.coffee"...Done 10:49:36.131 [pimatic] Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 10:49:36.166 [pimatic-cron] the time is: Tue Dec 31 2019 10:49:36 GMT+0100 (CET) 10:49:36.579 [pimatic-mobile-frontend] packing static assets 10:49:36.886 [pimatic-mobile-frontend] packing static assets finished 10:49:36.894 [pimatic-mobile-frontend] rendering html 10:49:43.487 [pimatic-mobile-frontend] rendering html finished 10:49:43.540 [pimatic] Listening for HTTP-request on port 80...
Now i will do the fresh test node 10.16.3 (according the pimatic Wiki)
The installation went without any problems.pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js 11:21:59.534 2019-12-31 Tuesday 11:22:02.750 [pimatic] Starting pimatic version 0.9.54 11:22:02.757 [pimatic] Node.js version 10.16.3 11:22:02.758 [pimatic] OpenSSL version 1.1.1c 11:22:04.217 [pimatic, ppm] 2.15.12 11:22:04.245 [pimatic] Loading plugin: "pimatic-cron" (0.8.8) 11:22:04.640 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16) 11:22:05.132 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13) coffee-cache: compiling coffee-script file "mqtt.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-switch.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-dimmer.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-sensor.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-presence-sensor.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-contact-sensor.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-buttons.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-shutter.coffee"...Done coffee-cache: compiling coffee-script file "devices/mqtt-input.coffee"...Done coffee-cache: compiling coffee-script file "predicates_and_actions/mqtt_action.coffee"...Done coffee-cache: compiling coffee-script file "predicates_and_actions/mqtt_predicate.coffee"...Done 11:22:07.136 [pimatic-cron] the time is: Tue Dec 31 2019 11:22:07 GMT+0100 (Central European Standard Time) coffee-cache: compiling coffee-script file "device-config-schema.coffee"...Done 11:22:07.823 [pimatic-mobile-frontend] packing static assets 11:22:08.169 [pimatic-mobile-frontend] packing static assets finished 11:22:08.174 [pimatic-mobile-frontend] rendering html 11:22:12.390 [pimatic-mobile-frontend] rendering html finished 11:22:12.418 [pimatic] Listening for HTTP-request on port 80...
So node 10.16.3 works if you do a fresh install!
Why my node 4.6.2 works with mqtt 0.9.13 is probably because it was upgraded and not a fresh install (i’m not going to prove that )
-
@michael-rudek thank you very much.
I will try and see if I can install it. -
@simonbove On my system pimatic runs node 10.16.3.
If you want to use mysensors, switch your gateway(s) to ESP32 or ESP8266. Communication with the nodes is over MQTT.
The plugin is obsolete(ethernet instead of serial).
In my case i´m running 2 Gateways with ESP32. One with NRF24L01+ and one with LORA. -
@michael-rudek you are right that the current MySensors doen’t support serial.
For MySensors I have a working ‘node 10 serial’ pull request pending. I’m waiting for @mwittig to publish it. Then I will upgrade to node 10 and still use the serial solution with my SenseBender Gateway (and not waising good hardware:))
But the mqtt variant is of course a good alternative. -
I formatted my SD card again and did a complete install again from scratch.
Only changed the npm version to 4.9.1.
Sadly it did not fix the problem.
See the below log.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Dec 31 11:57:05 2019 from 192.168.3.16 pi@raspberrypi:~ $ sudo /home/pi/pimatic-app/node_modules/pimatic/pimatic.js 13:14:42.745 2019-12-31 Tuesday 13:15:03.007 [pimatic] Starting pimatic version 0.9.54 13:15:03.053 [pimatic] Node.js version 4.9.1 13:15:03.061 [pimatic] OpenSSL version 1.0.2o 13:15:21.000 [pimatic, ppm] 2.15.12 13:15:21.169 [pimatic] Loading plugin: "pimatic-cron" (0.8.8) 13:15:23.276 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16) 13:15:26.177 [pimatic] Loading plugin: "pimatic-milight-reloaded" (0.9.18) 13:15:27.554 [pimatic] Loading plugin: "pimatic-netcheck" (1.1.0) 13:15:28.437 [pimatic] Loading plugin: "pimatic-shell-execute" (0.9.11) 13:15:28.601 [pimatic] Loading plugin: "pimatic-homeduino" (0.9.18) 13:15:32.120 [pimatic] Loading plugin: "pimatic-max" (0.9.0) 13:15:32.382 [pimatic] Loading plugin: "pimatic-log-reader" (0.9.3) 13:15:32.530 [pimatic] Loading plugin: "pimatic-sysinfo" (0.9.6) 13:15:33.401 [pimatic] Loading plugin: "pimatic-sunrise" (0.9.3) 13:15:34.093 [pimatic] Loading plugin: "pimatic-mail" (0.8.6) 13:15:36.580 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13) 13:15:37.715 [pimatic] Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 13:15:37.981 [pimatic] Loading plugin: "pimatic-harmonyhub" (0.0.6) 13:15:43.608 [pimatic] Loading plugin: "pimatic-raspbee" (0.1.5) 13:15:50.963 [pimatic-cron] the time is: Tue Dec 31 2019 13:15:50 GMT+0100 (CET) 13:15:51.002 [pimatic-milight-reloaded] [Plugin] Milight plugin started 13:15:56.243 [pimatic-sunrise] Your location is set to lat: 54.853911, long: 10.521971 13:15:56.603 [pimatic-harmonyhub] Starting pimatic-harmonyhub plugin 13:15:58.639 [pimatic] New device "Disko dasko"... 13:15:58.948 [pimatic] New device "Nedbør idag"... 13:15:59.028 [pimatic] No plugin found for device "living-room-ceiling-light" of class "MqttSwitch"! 13:15:59.234 [pimatic] New device "Milight Bridge Light"... 13:15:59.427 [pimatic] New device "Milight disko"... 13:15:59.544 [pimatic] New device "Simon"... 13:15:59.632 [pimatic] New device "Simon hjemme?"... 13:15:59.712 [pimatic] New device "MaxCube"... 13:15:59.799 [pimatic] New device "Temperatur i værelset"... 13:15:59.891 [pimatic] New device "Varme på værelset"... 13:16:00.000 [pimatic] New device "Temperatur i stuen"... 13:16:00.088 [pimatic] New device "Varme i stuen"... 13:16:00.245 [pimatic] New device "Elkedel elforbrug"... 13:16:00.487 [pimatic] New device "Opvaskemaskine elforbrug"... 13:16:00.697 [pimatic] New device "All Kitchen Lights"... 13:16:00.801 [pimatic] New device "All Lights Alexa On"... 13:16:00.893 [pimatic] New device "All Lights Alexa Off"... 13:16:00.971 [pimatic] New device "Biograf"... 13:16:01.112 [pimatic] New device "Raspberry Pi"... 13:16:01.258 [pimatic] New device "Raspberry Pi"... 13:16:01.512 [pimatic] New device "Solopgang & Solnedgang"... 13:16:01.621 [pimatic] New device "All Living Room Lights"... 13:16:01.713 [pimatic] New device "Living Room Heating Termostat 2"... 13:16:01.827 [pimatic] New device "Living Room Heating Termostat 3"... 13:16:01.878 [pimatic] No plugin found for device "battery-charger" of class "MqttSwitch"! 13:16:01.916 [pimatic] No plugin found for device "kitchen-counter-light" of class "MqttSwitch"! 13:16:01.950 [pimatic] No plugin found for device "maxcube-power-reset" of class "MqttSwitch"! 13:16:01.983 [pimatic] No plugin found for device "kitchen-ceiling-light" of class "MqttSwitch"! 13:16:02.018 [pimatic] No plugin found for device "samsung-tv" of class "MqttSwitch"! 13:16:02.049 [pimatic] No plugin found for device "dishwasher" of class "MqttSwitch"! 13:16:02.084 [pimatic] No plugin found for device "electric-kettle" of class "MqttSwitch"! 13:16:02.117 [pimatic] No plugin found for device "tv-remote" of class "MqttButtons"! 13:16:02.245 [pimatic] New device "Forstærker fjernbetjening"... 13:16:02.393 [pimatic] New device "PIR Hallway"... 13:16:02.531 [pimatic] New device "Doorbell"... 13:16:02.670 [pimatic] New device "Sony Vaio Start PC"... 13:16:02.704 [pimatic] No plugin found for device "co2-sensor" of class "MqttSensor"! 13:16:02.741 [pimatic] No plugin found for device "living-room-humidity" of class "MqttSensor"! 13:16:02.882 [pimatic] New device "Kitchen Motion Sensor"... 13:16:02.962 [pimatic] New device "Bevægelse hjemme?"... 13:16:03.047 [pimatic] New device "Automatisk varme styring"... 13:16:03.250 [pimatic] New device "Simon dør sensor"... 13:16:03.293 [pimatic] No plugin found for device "living-room-ceiling-motion-sensor" of class "MqttPresenceSensor"! 13:16:03.326 [pimatic] No plugin found for device "simon-illuminance-sensor" of class "MqttSensor"! 13:16:03.362 [pimatic] No plugin found for device "living-room-illuminance-sensor" of class "MqttSensor"! 13:16:03.500 [pimatic] New device "Gæst knap"... 13:16:03.601 [pimatic] New device "Klokken er:"... 13:16:03.627 [pimatic] No plugin found for device "rullegardin-kontrol" of class "MqttButtons"! 13:16:03.665 [pimatic] No plugin found for device "cpu-blser" of class "MqttSwitch"! 13:16:03.699 [pimatic] No plugin found for device "oneplus-charger" of class "MqttSwitch"! 13:16:03.845 [pimatic] New device "Rulle gardin op fjernbetjening"... 13:16:03.978 [pimatic] New device "Rulle gardin ned fjernbetjening"... 13:16:04.008 [pimatic] No plugin found for device "rgb-dimmer" of class "MqttDimmer"! 13:16:04.043 [pimatic] No plugin found for device "rgb-led-farve-vlger" of class "MqttButtons"! 13:16:04.078 [pimatic] No plugin found for device "vaskemaskine" of class "MqttSwitch"! 13:16:04.216 [pimatic] New device "Vaskemaskine strømforbrug"... 13:16:04.465 [pimatic] New device "Simon vindue"... 13:16:04.572 [pimatic] New device "Gulvvarme"... 13:16:04.682 [pimatic] New device "Badeværelse temperatur"... 13:16:04.779 [pimatic] New device "Køkken radiator"... 13:16:04.880 [pimatic] New device "Køkken temperatur"... 13:16:05.004 [pimatic] New device "Loftlys gang"... 13:16:05.120 [pimatic] New device "Gæst hjemme? "... 13:16:05.229 [pimatic] New device "Spisebord lys"... 13:16:05.291 [pimatic] No plugin found for device "spisebord-lys-knap" of class "MqttSwitch"! 13:16:05.436 [pimatic] New device "Sluk alt knap ved seng"... 13:16:05.549 [pimatic] New device "Senge lamper"... 13:16:05.610 [pimatic] No plugin found for device "samsung-tv-vol-up-button" of class "MqttPresenceSensor"! 13:16:05.649 [pimatic] No plugin found for device "samsung-tv-vol-down-button" of class "MqttPresenceSensor"! 13:16:05.681 [pimatic] No plugin found for device "samsung-tv-red-button" of class "MqttPresenceSensor"! 13:16:05.717 [pimatic] No plugin found for device "samsung-tv-green-button" of class "MqttPresenceSensor"! 13:16:05.752 [pimatic] No plugin found for device "samsung-tv-orange-button" of class "MqttPresenceSensor"! 13:16:05.788 [pimatic] No plugin found for device "sovevrelse-loftlys" of class "MqttSwitch"! 13:16:05.820 [pimatic] No plugin found for device "badevrelse-lys" of class "MqttSwitch"! 13:16:05.962 [pimatic] New device "Badeværelse PIR"... 13:16:05.989 [pimatic] No plugin found for device "badevrelse-luftfugtighed" of class "MqttSensor"! 13:16:06.135 [pimatic] New device "Badeværelse dør"... 13:16:06.169 [pimatic] No plugin found for device "ventilation" of class "MqttSwitch"! 13:16:06.206 [pimatic] No plugin found for device "ventilation-boost" of class "MqttSwitch"! 13:16:06.238 [pimatic] No plugin found for device "kkken-luftfugtighed" of class "MqttSensor"! 13:16:06.279 [pimatic] No plugin found for device "luft-tryk" of class "MqttSensor"! 13:16:06.310 [pimatic] No plugin found for device "sovevrelse-luftfugtighed" of class "MqttSensor"! 13:16:06.430 [pimatic] New device "Gulv lampe"... 13:16:06.536 [pimatic] No plugin found for device "outside-temperature" of class "MqttSensor"! 13:16:06.574 [pimatic] No plugin found for device "samsung-tv-power-button" of class "MqttPresenceSensor"! 13:16:06.657 [pimatic] New device "Guest mode"... 13:16:06.800 [pimatic] New device "Ekstra relæ (sartano)"... 13:16:06.828 [pimatic] No plugin found for device "party-knap" of class "MqttSwitch"! 13:16:06.972 [pimatic] New device "Logitech Bluetooth modtager"... 13:16:07.001 [pimatic] No plugin found for device "living-room-microphone" of class "MqttPresenceSensor"! 13:16:07.144 [pimatic] New device "Vand lækage sensor"... 13:16:07.232 [pimatic] New device "Lille rullegardin I køkkenet"... 13:16:07.333 [pimatic] New device "Stort rullegardin i køkkenet"... 13:16:07.373 [pimatic] No plugin found for device "force-reboot" ```
-
@simonbove node v4.9.1 did not work in my fresh install case also.
I think you need a higher node version. I installed it successfully with node 10.16.3If upgrading to node v10 is not an option for you, you could downgrade/use the lower mqtt version 0.9.12
-
Yeah I think you are right. Hopefully it will be fixed in the next version of mqtt plugin.
If I don’t remember wrong, then there would be a problem with homeduino if I upgraded to version 10 og node, but I might be mistaken?
I will give it a try in the new year, as I failed in downgrading the mqtt plugin. It keeps being version that ends in 13 for some reason.
Who is the maintainer of the mqtt plugin? Maybe the need to know of these problems.
-
I tried again with the version 10 of nodejs and this worked. All my plug-ins are working. Now I will see if the install is stable.
Thanks for the help.
Kind regards Simon