Closed Spudaaa closed 2 years ago
I have reinstalled the plugin multiple times, checked the config.JSON seems to match your examples. Desperate to get this first raspberry pi project working.
That instructable is out of date and doesn't match the current configuration
Updated instructions are here - https://github.com/NorthernMan54/homebridge-dht/blob/master/Build.md
But with that said, this error means that the plugin did not install No plugin was found for the accessory "Dht" in your config.json.
Did you get any errors during the install ?
No errors installed perfectly.
I checked the GitHub instructions too still no joy. I have also reinstalled the plugin multiple times
i have completely flashed the imageback to the pi and started again, now when installing bm2835
make[3]: [Makefile:669: test-suite.log] Error 1 make[3]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make[2]: [Makefile:777: check-TESTS] Error 2 make[2]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make[1]: [Makefile:851: check-am] Error 2 make[1]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make: [Makefile:365: check-recursive] Error 1
That message is saying that the previous step make
had an issue, what does the output of make say ?
start to failure is as follows
make[3]: [Makefile:669: test-suite.log] Error 1 make[3]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make[2]: [Makefile:777: check-TESTS] Error 2 make[2]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make[1]: [Makefile:851: check-am] Error 2 make[1]: Leaving directory '/var/lib/homebridge/bcm2835-1.71/src' make: [Makefile:365: check-recursive] Error 1
humm, what is in this file src/test-suite.log
?
Sounds like a permission issue with /dev/mem, try running the test again with sudo
Update: Library installed.. took another re-flash of the micro Sd and not to install the web ui until after.
See logs now not temperature readings
Log:
05/05/2022, 06:58:42] Loaded config.json with 2 accessories and 1 platforms. [05/05/2022, 06:58:42] Loaded 0 cached accessories from cachedAccessories. [05/05/2022, 06:58:42] --- [05/05/2022, 06:58:44] Loaded plugin: homebridge-config-ui-x@4.43.2 [05/05/2022, 06:58:44] Registering platform 'homebridge-config-ui-x.config' [05/05/2022, 06:58:44] --- [05/05/2022, 06:58:50] Loaded plugin: homebridge-dht@0.1.33 [05/05/2022, 06:58:50] Registering accessory 'homebridge-dht.Dht' [05/05/2022, 06:58:50] --- [05/05/2022, 06:58:50] Loading 1 platforms... [05/05/2022, 06:58:51] [Config] Initializing config platform... [05/05/2022, 06:58:51] [Config] Running in Service Mode [05/05/2022, 06:58:51] Loading 2 accessories... [05/05/2022, 06:58:51] [cputemp] Initializing Dht accessory... [05/05/2022, 06:58:51] [cputemp] Adding Accessory [05/05/2022, 06:58:51] [cputemp] INIT: cputemp [05/05/2022, 06:58:51] [Temp/Humidity Sensor] Initializing Dht accessory... [05/05/2022, 06:58:51] [Temp/Humidity Sensor] Adding Accessory [05/05/2022, 06:58:51] [Temp/Humidity Sensor] INIT: Temp/Humidity Sensor Setup Payload: X-HM://0023Z6QTA2Q7Q Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 306-61-694 │
└────────────┘
[05/05/2022, 06:58:51] Homebridge v1.4.1 (HAP v0.10.2) (Homebridge F7E6) is running on port 51872. [05/05/2022, 06:58:52] [cputemp] cputemp function failed: Error: spawn cputemp ENOENT [05/05/2022, 06:58:52] [Temp/Humidity Sensor] Error: [Error: failed to read sensor] [05/05/2022, 06:58:52] [homebridge-dht] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
This version should not use [cputemp] cputemp function failed: Error: spawn cputemp ENOENT
for the DHT Temperature. What is in your config.json ?
The error Error: [Error: failed to read sensor]
is coming from the library node-dht-sensor. Do you have the wiring correct ?
Wiring is exactly to your specs
Config now stands at
{ "bridge": { "name": "Homebridge F7E6", "username": "****", "port": 51164, "pin": "***" }, "accessories": [ { "accessory": "Dht", "name": "test", "gpio": "4", "service": "dht22", "refresh": "1" } ], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" } ] }
This is the sensor used.. I have got another 2 incase of sensor failure
Hi, not sure if the repos is still active but I’ve not long been into homebridge. Having a lot of issues. Managed to get this far from your instructable page.
keep getting these massages in the logs, any idea?
: [28/04/2022, 21:33:07] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 855C) is running on port 51125. [28/04/2022, 21:39:49] [Homebridge UI] Changes to config.json saved. [28/04/2022, 21:40:06] [Homebridge UI] Homebridge restart request received [28/04/2022, 21:40:06] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process [28/04/2022, 21:40:06] [Homebridge UI] Sending SIGTERM to Homebridge [28/04/2022, 21:40:06] Got SIGTERM, shutting down Homebridge... [28/04/2022, 21:40:11] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [28/04/2022, 21:40:16] [HB Supervisor] Restarting Homebridge... [28/04/2022, 21:40:16] [HB Supervisor] Starting Homebridge with extra flags: -I [28/04/2022, 21:40:16] [HB Supervisor] Started Homebridge v1.4.0 with PID: 2130 [28/04/2022, 21:40:18] Loaded config.json with 2 accessories and 1 platforms. [28/04/2022, 21:40:18] Loaded 0 cached accessories from cachedAccessories. [28/04/2022, 21:40:18] --- [28/04/2022, 21:40:20] Plugin /usr/local/lib/node_modules/homebridge-config-ui package.json does not contain the keyword 'homebridge-plugin'. [28/04/2022, 21:40:21] Loaded plugin: homebridge-config-ui-x@4.43.1 [28/04/2022, 21:40:21] Registering platform 'homebridge-config-ui-x.config' [28/04/2022, 21:40:21] --- [28/04/2022, 21:40:21] Loading 1 platforms... [28/04/2022, 21:40:21] [Config] Initializing config platform... [28/04/2022, 21:40:21] [Config] Running in Service Mode [28/04/2022, 21:40:21] Loading 2 accessories... [28/04/2022, 21:40:21] No plugin was found for the accessory "Dht" in your config.json. Please make sure the corresponding plugin is installed correctly. [28/04/2022, 21:40:21] No plugin was found for the accessory "Dht" in your config.json. Please make sure the corresponding plugin is installed correctly. Setup Payload: X-HM://0024VDJCJGNWM Enter this code with your HomeKit app on your iOS device to pair with Homebridge: