@mwittig said in DHT22 sensors stopped working after upgrading pimatic to v0.9.40:
followed your guide…
sudo service pimatic stop
# At this point I recommend to perform a back of config.json and the database file
cd /home/pi/pimatic-app
sudo npm install pimatic@0.9.39 --unsafe-perm
sudo service pimatic start
pimatic@0.9.39 node_modules/pimatic
├── basic-auth@1.1.0
├── cookie-parser@1.4.3 (cookie-signature@1.0.6, cookie@0.3.1)
├── cookie-session@1.2.0 (on-headers@1.0.1, debug@2.2.0, cookies@0.5.0)
├── connect-timeout@1.9.0 (ms@2.0.0, on-headers@1.0.1, on-finished@2.3.0, http-errors@1.6.1)
├── method-override@2.3.9 (methods@1.1.2, parseurl@1.3.1, vary@1.1.1, debug@2.6.8)
├── cross-spawn@5.1.0 (shebang-command@1.2.0, lru-cache@4.1.1, which@1.2.14)
├── body-parser@1.17.2 (content-type@1.0.2, bytes@2.4.0, depd@1.1.0, on-finished@2.3.0, qs@6.4.0, http-errors@1.6.1, raw-body@2.2.0, debug@2.6.7, iconv-lite@0.4.15, type-is@1.6.15)
├── logrotate-stream@0.2.5 (byt@0.1.0, log-rotate@0.2.7, optimist@0.6.1)
├── socket.io@1.7.4 (object-assign@4.1.0, socket.io-adapter@0.5.0, has-binary@0.1.7, debug@2.3.3, socket.io-parser@2.3.1, engine.io@1.8.4, socket.io-client@1.7.4)
├── jsonlint@1.6.2 (nomnom@1.8.1, JSV@4.0.2)
└── request-promise@2.0.1 (bluebird@2.11.0, request@2.81.0, lodash@4.17.4)
starting v0.9.39...
``09:49:41.656 2017-07-07 Friday
coffee-cache: compiling coffee-script file "lib/api.coffee"...Done
coffee-cache: compiling coffee-script file "lib/users.coffee"...Done
coffee-cache: compiling coffee-script file "lib/devices.coffee"...Done
coffee-cache: compiling coffee-script file "lib/matcher.coffee"...Done
coffee-cache: compiling coffee-script file "lib/milliseconds.coffee"...Done
coffee-cache: compiling coffee-script file "lib/variables.coffee"...Done
coffee-cache: compiling coffee-script file "lib/variables-ast-builder.coffee"...Done
coffee-cache: compiling coffee-script file "lib/actions.coffee"...Done
coffee-cache: compiling coffee-script file "lib/predicates.coffee"...Done
coffee-cache: compiling coffee-script file "lib/rules.coffee"...Done
coffee-cache: compiling coffee-script file "lib/rules-ast-builder.coffee"...Done
coffee-cache: compiling coffee-script file "lib/plugins.coffee"...Done
coffee-cache: compiling coffee-script file "lib/database.coffee"...Done
coffee-cache: compiling coffee-script file "lib/groups.coffee"...Done
coffee-cache: compiling coffee-script file "lib/pages.coffee"...Done
coffee-cache: compiling coffee-script file "lib/framework.coffee"...Done
09:52:44.333 [pimatic] info: Starting pimatic version 0.9.39
coffee-cache: compiling coffee-script file "config-schema.coffee"...Done
...and same errors :(
at processImmediate [as _immediateCallback] (timers.js:383:17)
09:58:13.683 [pimatic-homeduino, HomeduinoDHTSensor] error: Error getting attribute value dht23.temperature: timeout_error
09:58:13.716 [pimatic-homeduino, HomeduinoDHTSensor] error: Error getting attribute value dht23.humidity: timeout_error
09:58:13.728 [pimatic] warn: Could not update variable dht23.temperature: timeout_error
09:58:13.739 [pimatic] warn: Could not update variable dht23.humidity: timeout_error
Unhandled rejection Error: timeout_error
at /home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/lib/board.js:294:19
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:503:31)
at Promise._settlePromiseAt (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:577:18)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:693:14)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Unhandled rejection Error: timeout_error
at /home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/lib/board.js:294:19
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:503:31)
at Promise._settlePromiseAt (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:577:18)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:693:14)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Unhandled rejection timeout