ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
305 stars 18 forks source link

No smoke sensor device, and unable to see any docs if its off by default. #46

Closed JeremyLaurenson closed 4 years ago

JeremyLaurenson commented 4 years ago

First, thank you for a fantastic plugin!

I do not see a smoke created by default - should this be the case or is there just not documentation yet?

ebaauw commented 4 years ago

Should be created, unless you set hidden for the host in config.json. Are you running v1.1.11 and did you restart Homebridge? If you want me to have a look, please attach a debug log file, see https://github.com/ebaauw/homebridge-rpi#debug-log-file.

JeremyLaurenson commented 4 years ago

Not much there.... Im not sure debugging is working properly:

root@rpi-netmgr:/home/pi# cat homebridge.log [7/24/2020, 14:42:33] config.json (/root/.homebridge/config.json) not found. [7/24/2020, 14:42:33] Loaded plugin: homebridge-chamberlain@1.6.1 [7/24/2020, 14:42:33] Registering accessory 'homebridge-chamberlain.Chamberlain' [7/24/2020, 14:42:33] --- [7/24/2020, 14:42:33] Loaded plugin: homebridge-config-ui-x@4.24.0 [7/24/2020, 14:42:33] Registering platform 'homebridge-config-ui-x.config' [7/24/2020, 14:42:33] --- [7/24/2020, 14:42:34] Loaded plugin: homebridge-http-webhooks@0.1.3 [7/24/2020, 14:42:34] Registering platform 'homebridge-http-webhooks.HttpWebHooks' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookSensor' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookSwitch' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookPushButton' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookLight' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookThermostat' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookOutlet' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookSecurity' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookGarageDoorOpener' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookStatelessSwitch' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookLockMechanism' [7/24/2020, 14:42:34] Registering accessory 'homebridge-http-webhooks.HttpWebHookWindowCovering' [7/24/2020, 14:42:34] --- [7/24/2020, 14:42:34] Loaded plugin: homebridge-nest@4.4.6 [7/24/2020, 14:42:34] Registering platform 'homebridge-nest.Nest' [7/24/2020, 14:42:34] --- [7/24/2020, 14:42:35] Loaded plugin: homebridge-ring@9.6.0 [7/24/2020, 14:42:35] Registering platform 'homebridge-ring.Ring' [7/24/2020, 14:42:35] --- [7/24/2020, 14:42:35] Loaded plugin: homebridge-rpi@1.1.11 [7/24/2020, 14:42:35] Registering platform 'homebridge-rpi.Lib' [7/24/2020, 14:42:35] Registering platform 'homebridge-rpi.RPi' [7/24/2020, 14:42:35] --- [7/24/2020, 14:42:35] Loaded plugin: homebridge-ping-hosts@1.0.3 [7/24/2020, 14:42:35] Registering platform '@vectronic/homebridge-ping-hosts.PingHosts' [7/24/2020, 14:42:35] --- Setup Payload: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge: [7/24/2020, 14:42:35] Homebridge is running on port 40943.

ebaauw commented 4 years ago

Please attach a full debug log file, see https://github.com/ebaauw/homebridge-rpi#debug-log-file. I need the output of homebridge -D.

JeremyLaurenson commented 4 years ago

Here. as above. homebridge.log.zip

ebaauw commented 4 years ago

Indeed, the same.

[7/24/2020, 14:42:33] config.json (/root/.homebridge/config.json) not found.

Note that homebridge didn't pick up your config.json (sorry, I missed that earlier), you probably need to specify -U /var/lib/homebridge next to -D (assuming you installed using hb-service).

JeremyLaurenson commented 4 years ago

Much better :-) homebridge.log.zip

JeremyLaurenson commented 4 years ago

`[7/24/2020, 16:19:48] [RPi] warning: heartbeat 12, drift 259 [7/24/2020, 16:19:51] [RPi] rpi-netman: exec vcgencmd measure_temp [7/24/2020, 16:19:51] [RPi] rpi-netman: exec vcgencmd measure_clock arm [7/24/2020, 16:19:51] [RPi] rpi-netman: exec vcgencmd measure_volts [7/24/2020, 16:19:51] [RPi] rpi-netman: exec vcgencmd get_throttled [7/24/2020, 16:19:51] [RPi] rpi-netman: command HWVER (17) 0 0 [7/24/2020, 16:19:51] [RPi] rpi-netman: command HWVER (17) => 11546897 [7/24/2020, 16:19:51] [RPi] rpi-netman: state: {"date":"2020-07-24T15:19:51.000Z","boot":"2020-07-23T16:41:48.000Z","load":0.12,"temp":46,"freq":1000265600,"volt":0.8375,"throttled":0} [7/24/2020, 16:19:51] [RPi] rpi-netman: set Current Temperature from 43°C to 46°C [7/24/2020, 16:19:51] [RPi] rpi-netman: set Frequency from 750MHz to 1000MHz [7/24/2020, 16:19:51] [RPi] rpi-netman: set Load from 0 to 0.12 [7/24/2020, 16:19:51] [RPi] rpi-netman: set Last Updated from "Fri Jul 24 2020 16:19:09" to "Fri Jul 24 2020 16:19:51" [7/24/2020, 16:19:51] [RPi] rpi-netman: set Last Boot from "Thu Jul 23 2020 17:41:49" to "Thu Jul 23 2020 17:41:48" [7/24/2020, 16:20:06] [RPi] flush cachedAccessories [7/24/2020, 16:20:06] [RPi] rpi-netman: exec vcgencmd measure_temp [7/24/2020, 16:20:06] [RPi] rpi-netman: exec vcgencmd measure_clock arm [7/24/2020, 16:20:06] [RPi] rpi-netman: exec vcgencmd measure_volts [7/24/2020, 16:20:06] [RPi] rpi-netman: exec vcgencmd get_throttled [7/24/2020, 16:20:06] [RPi] rpi-netman: command HWVER (17) 0 0 [7/24/2020, 16:20:06] [RPi] rpi-netman: command HWVER (17) => 11546897 [7/24/2020, 16:20:06] [RPi] rpi-netman: state: {"date":"2020-07-24T15:20:07.000Z","boot":"2020-07-23T16:41:49.000Z","load":0.17,"temp":45,"freq":1500398464,"volt":0.8375,"throttled":0} [7/24/2020, 16:20:06] [RPi] rpi-netman: set Current Temperature from 46°C to 45°C [7/24/2020, 16:20:06] [RPi] rpi-netman: set Frequency from 1000MHz to 1500MHz [7/24/2020, 16:20:06] [RPi] rpi-netman: set Load from 0.12 to 0.17 [7/24/2020, 16:20:06] [RPi] rpi-netman: set Last Updated from "Fri Jul 24 2020 16:19:51" to "Fri Jul 24 2020 16:20:07" [7/24/2020, 16:20:06] [RPi] rpi-netman: set Last Boot from "Thu Jul 23 2020 17:41:48" to "Thu Jul 23 2020 17:41:49" [7/24/2020, 16:20:16] [Ring] Jeremy Detected Motion [7/24/2020, 16:20:21] [RPi] rpi-netman: exec vcgencmd measure_temp [7/24/2020, 16:20:21] [RPi] rpi-netman: exec vcgencmd measure_clock arm [7/24/2020, 16:20:21] [RPi] rpi-netman: exec vcgencmd measure_volts [7/24/2020, 16:20:21] [RPi] rpi-netman: exec vcgencmd get_throttled [7/24/2020, 16:20:21] [RPi] rpi-netman: command HWVER (17) 0 0 [7/24/2020, 16:20:21] [RPi] rpi-netman: command HWVER (17) => 11546897 [7/24/2020, 16:20:21] [RPi] rpi-netman: state: {"date":"2020-07-24T15:20:21.000Z","boot":"2020-07-23T16:41:48.000Z","load":0.13,"temp":46,"freq":1000265600,"volt":0.8375,"throttled":0} [7/24/2020, 16:20:21] [RPi] rpi-netman: set Current Temperature from 45°C to 46°C [7/24/2020, 16:20:21] [RPi] rpi-netman: set Frequency from 1500MHz to 1000MHz [7/24/2020, 16:20:21] [RPi] rpi-netman: set Load from 0.17 to 0.13 [7/24/2020, 16:20:21] [RPi] rpi-netman: set Last Updated from "Fri Jul 24 2020 16:20:07" to "Fri Jul 24 2020 16:20:21" [7/24/2020, 16:20:21] [RPi] rpi-netman: set Last Boot from "Thu Jul 23 2020 17:41:49" to "Thu Jul 23 2020 17:41:48" [7/24/2020, 16:20:35] [PingHosts] [Router] success for 10.0.1.1 with session 245 [7/24/2020, 16:20:35] [PingHosts] [Keyfob Module] success for 10.0.1.40 with session 304 [7/24/2020, 16:20:36] [RPi] rpi-netman: exec vcgencmd measure_temp [7/24/2020, 16:20:36] [RPi] rpi-netman: exec vcgencmd measure_clock arm [7/24/2020, 16:20:36] [RPi] rpi-netman: exec vcgencmd measure_volts [7/24/2020, 16:20:36] [RPi] rpi-netman: exec vcgencmd get_throttled [7/24/2020, 16:20:36] [RPi] rpi-netman: command HWVER (17) 0 0 [7/24/2020, 16:20:36] [RPi] rpi-netman: command HWVER (17) => 11546897 [7/24/2020, 16:20:36] [RPi] rpi-netman: state: {"date":"2020-07-24T15:20:36.000Z","boot":"2020-07-23T16:41:48.000Z","load":0.1,"temp":45,"freq":750146496,"volt":0.8375,"throttled":0} [7/24/2020, 16:20:36] [RPi] rpi-netman: set Current Temperature from 46°C to 45°C [7/24/2020, 16:20:36] [RPi] rpi-netman: set Frequency from 1000MHz to 750MHz [7/24/2020, 16:20:36] [RPi] rpi-netman: set Load from 0.13 to 0.1 [7/24/2020, 16:20:36] [RPi] rpi-netman: set Last Updated from "Fri Jul 24 2020 16:20:21" to "Fri Jul 24 2020 16:20:36"

`

ebaauw commented 4 years ago

I see no weird things in log, but also no evidence whether the smoke sensor is exposed. Could you please attach cachedAccessories?

ebaauw commented 4 years ago

What HomeKit app are you using? By default, Home combines the Smoke Sensor and Temperature Sensor in a single tile. Too change that, select Show as Separate Tiles in the settings. In Eve, you just see an additional Smoke characteristic in the Pi accessory.

JeremyLaurenson commented 4 years ago

Apples own app. Let me go dig for the temp one and maybe its now compound

JeremyLaurenson commented 4 years ago

Right you are! I expected a new, separate smoke sensor.