Bei allem Weiteren muss ich passen.
Schade
Aber nochmals vielen Danke für deine Mühen!
Vielleicht hat ja noch jemand anderes eine Idee ![]()
Bei allem Weiteren muss ich passen.
Schade
Aber nochmals vielen Danke für deine Mühen!
Vielleicht hat ja noch jemand anderes eine Idee ![]()
Hat leider auch keinen Erfolg gebracht:
pi@mazlpi:~ $ sudo npm install -g --unsafe-perm homebridge-dht-sensor
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
> [email protected] preinstall /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor
> ./check-lib.sh
Library bcm2835 found.
> [email protected] install /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor
> node-gyp configure
> [email protected] postinstall /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor
> node-gyp build
make: Entering directory '/usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor/build'
CXX(target) Release/obj.target/node_dht_sensor/node-dht-sensor.o
../node-dht-sensor.cpp: In member function 'virtual void ReadWorker::HandleOKCallback()':
../node-dht-sensor.cpp:48:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
callback->Call(3, argv);
^
In file included from ../node-dht-sensor.cpp:2:0:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../node-dht-sensor.cpp: In function 'void ReadSync(const Nan::FunctionCallbackInfo<v8::Value>&)':
../node-dht-sensor.cpp:96:37: error: no matching function for call to 'v8::Value::Uint32Value()'
gpio_pin = args[1]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp:99:40: error: no matching function for call to 'v8::Value::Uint32Value()'
sensor_type = args[0]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp:129:81: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)'
readout->Set(Nan::New("humidity").ToLocalChecked(), Nan::New<Number>(humidity));
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../node-dht-sensor.cpp:130:87: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)'
readout->Set(Nan::New("temperature").ToLocalChecked(), Nan::New<Number>(temperature));
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../node-dht-sensor.cpp:131:84: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)'
readout->Set(Nan::New("isValid").ToLocalChecked(), Nan::New<Boolean>(result == 0));
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../node-dht-sensor.cpp:132:91: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Number>::return_t)'
readout->Set(Nan::New("errors").ToLocalChecked(), Nan::New<Number>(_max_retries - retry));
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../node-dht-sensor.cpp: In function 'void SetMaxRetries(const Nan::FunctionCallbackInfo<v8::Value>&)':
../node-dht-sensor.cpp:158:41: error: no matching function for call to 'v8::Value::Uint32Value()'
_max_retries = args[0]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp: In function 'void Initialize(const Nan::FunctionCallbackInfo<v8::Value>&)':
../node-dht-sensor.cpp:177:45: error: no matching function for call to 'v8::Value::Uint32Value()'
_max_retries = args[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp:181:44: error: no matching function for call to 'v8::Value::Uint32Value()'
int sensor_type = args[0]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp:189:38: error: no matching function for call to 'v8::Value::Uint32Value()'
_gpio_pin = args[1]->Uint32Value();
^
In file included from /root/.cache/node-gyp/14.15.0/include/node/node.h:67:0,
from ../node-dht-sensor.cpp:1:
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/14.15.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../node-dht-sensor.cpp: At global scope:
../node-dht-sensor.cpp:194:11: error: variable or field 'Init' declared void
void Init(Handle<Object> exports) {
^~~~~~
../node-dht-sensor.cpp:194:11: error: 'Handle' was not declared in this scope
../node-dht-sensor.cpp:194:24: error: expected primary-expression before '>' token
void Init(Handle<Object> exports) {
^
../node-dht-sensor.cpp:194:26: error: 'exports' was not declared in this scope
void Init(Handle<Object> exports) {
^~~~~~~
In file included from ../node-dht-sensor.cpp:1:0:
../node-dht-sensor.cpp:200:30: error: 'Init' was not declared in this scope
NODE_MODULE(node_dht_sensor, Init);
^
/root/.cache/node-gyp/14.15.0/include/node/node.h:758:36: note: in definition of macro 'NODE_MODULE_X'
(node::addon_register_func) (regfunc), \
^~~~~~~
../node-dht-sensor.cpp:200:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(node_dht_sensor, Init);
^~~~~~~~~~~
../node-dht-sensor.cpp:200:30: note: suggested alternative:
NODE_MODULE(node_dht_sensor, Init);
^
/root/.cache/node-gyp/14.15.0/include/node/node.h:758:36: note: in definition of macro 'NODE_MODULE_X'
(node::addon_register_func) (regfunc), \
^~~~~~~
../node-dht-sensor.cpp:200:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(node_dht_sensor, Init);
^~~~~~~~~~~
In file included from ../node-dht-sensor.cpp:1:0:
/root/.cache/node-gyp/14.15.0/include/node/node.h:236:22: note: 'node::Init'
NODE_EXTERN void Init(int* argc,
^
/root/.cache/node-gyp/14.15.0/include/node/node.h:108:42: note: in definition of macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
node_dht_sensor.target.mk:112: recipe for target 'Release/obj.target/node_dht_sensor/node-dht-sensor.o' failed
make: *** [Release/obj.target/node_dht_sensor/node-dht-sensor.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor
gyp ERR! node -v v14.15.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-11-14T19_32_16_295Z-debug.log
pi@mazlpi:~ $
lugins musst du - wenn du die Forenanleitung benutzt hast - mit Superuser-Zugriffsrechten installieren.
Stimmt, vielen Dank Gerrit.Fries ![]()
Habe es mit sudo versucht, dann kommt aber der gleiche Fehler wie beim Installationsversuch über die GUI.
Egal wie viel ich noch google, ich finde nichts passendes für mein Problem.
Hier hatte wohl scheinbar jemand die gleichen Schwierigkeiten, aber da gibt es keinen Lösungvorschlag: https://github.com/maxnowack/homebridge-dht-sensor/issues/46
Als ihr den Sensor an euren Pi angeschlossen habt, konntet das Plugin direkt auf die Werte zugreifen?
Könnt ihr vielleicht eine Anleitung empfehlen, die ich nochmals durchspielen sollte?
Ja, jetzt kann ich das Skript als homebridge ausführen:
homebridge@mazlpi:/tmp $ python DHT22.py
[press ctrl+c to end the script]
Temp=22.8*c Humidity=60.4%
Temp=22.9*c Humidity=60.5%
Temp=22.9*c Humidity=60.5%
^CScript end!
Aber auch nach einem Neustart von Homebridge gibt es weiterhin einen Fehler beim Sensor:
Nov 14 17:07:37 mazlpi homebridge[14025]: [14.11.2020, 17:07:37] [dht22 - indoor] Error: [Error: failed to read sensor]
Ich wollte ein anderes Plugin probieren, namentlich homebridge-dht-sensor v2.1.2 (2017-01-29) --> https://github.com/maxnowack/homebridge-dht-sensor#readme
Dafür musste ich zunächst BCM2835 installieren (https://www.techworked.com/ins…-library-in-raspberry-pi/) - hier gab es, soweit ich es sehen kann, keine Probleme.
Leider kommt bei der Plugin-Installation via GUI folgender Fehler:
>>
...
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-dht-sensor/node_modules/node-dht-sensor
gyp ERR! node -v v14.15.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/homebridge/.npm/_logs/2020-11-14T16_20_25_539Z-debug.log
Versuche ich es direkt über das Terminal, komme ich auch nicht weiter:
pi@mazlpi:~ $ npm install -g homebridge-dht-sensor
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-11-14T16_25_57_044Z-debug.log
pi@mazlpi:~ $
Vielen Dank sschuste für die super schnelle Rückmeldung.
Ja, ich habe eure Anleitung verwendet. Jedenfalls zum Großteil, an einer Stelle kam ich nicht weiter.
Tatsächlich funktioniert es nicht mehr ![]()
pi@mazlpi:~ $ cp DHT22.py /tmp
pi@mazlpi:~ $ sudo su - homebridge
homebridge@mazlpi:~ $ cd /tmp
homebridge@mazlpi:/tmp $ python DHT22.py
[press ctrl+c to end the script]
Traceback (most recent call last):
File "DHT22.py", line 8, in <module>
humidity, temperature = Adafruit_DHT.read_retry(sensor,pin)
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/common.py", line 94, in read_retry
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/common.py", line 80, in read
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/common.py", line 55, in get_platform
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/Raspberry_Pi_2.py", line 22, in <module>
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/Raspberry_Pi_2_Driver.py", line 7, in <module>
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/Raspberry_Pi_2_Driver.py", line 4, in __bootstrap__
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1198, in resource_filename
self, resource_name
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1710, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1740, in _extract_resource
self.egg_name, self._parts(zip_path)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1265, in get_cache_path
self.extraction_error()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1245, in extraction_error
raise err
pkg_resources.ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: '/home/homebridge/.cache/Python-Eggs'
The Python egg cache directory is currently set to:
/home/homebridge/.cache/Python-Eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Komisch, denn ich hatte dem User homebridge zuvor Zugriff auf GPIO gegeben:
pi@mazlpi:~ $ sudo adduser homebridge gpio
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_US.UTF-8",
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("de_DE.UTF-8").
Der Benutzer »homebridge« ist bereits ein Mitglied der Gruppe »gpio«.
pi@mazlpi:~ $
Oder hat das nichts damit zu tun?
Hallo liebe Community,
ich bin noch ein blutiger Anfänger und zunächst vielen Dank für eure Tutorials und Beiträge.
Mit dieser bisherigen Hilfe konnte ich auf meinem Pi 3 Homebridge installieren und eine Kamera anschließen, die ich tatsächlich auch in HomeKit sehe.
Als nächstes wollte ich eine DHT22-Temperatursensor installieren, um damit mein EVE-Thermostat besser zu steuern.
Ich habe den Sensor angeschlossen mittels Anleitung von AZ-Delivery und kann auch erfolgreich mittels Python-Skript die Temperatur und Luftfeuchtigkeit auslesen:
pi@mazlpi:~ $ python DHT22.py
[press ctrl+c to end the script]
Temp=23.4*c Humidity=59.4%
Temp=22.8*c Humidity=60.4%
Temp=22.8*c Humidity=60.4%
^CScript end!
pi@mazlpi:~ $
Der Sensor an sich scheint also zu funktionieren.
Daraufhin habe ich in der Homebridge GUI "Homebridge Dht" installiert (homebridge-dht v.0.1.33) und folgende Konfiguration hinterlegt:
{
"accessory": "Dht",
"name": "dht22",
"service": "dht22"
}
Ich hab mich dabei hier orientiert: https://github.com/NorthernMan54/homebridge-dht
Leider bekomme ich beim Start folgende Fehlermeldung:
Nov 14 16:24:59 mazlpi homebridge[15920]: [14.11.2020, 16:24:59] [dht22] Error: [Error: failed to read sensor]
Und sie wiederholt sich regelmäßig:
Nov 14 16:25:59 mazlpi homebridge[15920]: [14.11.2020, 16:25:59] [dht22] Error: [Error: failed to read sensor]
In der Home-App wird das Gerät angezeigt, aber beide Werte sind bei 0 Grad bzw. 0 %.
Ich hab versucht, an der config zu spielen und z.B. folgendes ausprobiert:
{
"accessory": "Dht",
"name": "dht22 - indoor",
"gpio": "4",
"service": "dht22"
}
Ebenfalls kein Erfolg.
Diese Option ließ meine Homebridge gar nicht mehr starten:
{
"accessory": "DhtSensor",
"name": "Sensor",
"sensorType": 22,
"gpioPin": 4
}
Ich hab mit gpio und pin rumgespielt und egal was ich versucht habe, entweder hat die config mein homebridge abgeschossen, oder es wird einfach kein Wert geliefert. ![]()
Hier im Forum konnte ich nichts finden und auch sonst nichts im Internet. Habt ihr eine Idee?
Der Sensor ist angeschlossen an PIN 7 bzw. GPIO 4.
(In der Anleitung von AZ-Delivery war er an PIN 32 / GPIO 12, aber das hat auch nicht funktioniert und so habe ich es mit Umstecken versucht - erfolglos.)
Vorab vielen Dank für eure Mühen!
Marcel