Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devices (Output) not switching #2

Closed
markusk opened this issue Sep 24, 2018 · 2 comments
Closed

Devices (Output) not switching #2

markusk opened this issue Sep 24, 2018 · 2 comments

Comments

@markusk
Copy link

markusk commented Sep 24, 2018

First of all: This is great work and I'm so glad, that I found this project! :)

But my problem is, that nothing happens when I switch a port/device in my iPhone.

I installed homebridge and homebridge-revpidio and everything looks fine:

[2018-9-24 12:55:16] Loaded config.json with 4 accessories and 0 platforms.
[2018-9-24 12:55:16] ---
[2018-9-24 12:55:16] Loaded plugin: homebridge-revpidio
[2018-9-24 12:55:16] Registering accessory 'homebridge-revpidio.RevPiDO'
[2018-9-24 12:55:16] Registering accessory 'homebridge-revpidio.RevPiDI'
[2018-9-24 12:55:16] Registering accessory 'homebridge-revpidio.RevPiCore'
[2018-9-24 12:55:16] ---
[2018-9-24 12:55:16] Loading 0 platforms...
[2018-9-24 12:55:16] Loading 4 accessories...
[2018-9-24 12:55:16] [Brunnen] Initializing RevPiDO accessory...
[2018-9-24 12:55:16] [Rasensprenger] Initializing RevPiDO accessory...
[2018-9-24 12:55:16] [Licht] Initializing RevPiDO accessory...
[2018-9-24 12:55:16] [Mein RevPi Core] Initializing RevPiCore accessory...
Setup Payload:
X-HM://0023ISYWZD80J
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

I can also switch my output port via cmd line:

pi@RevPi6155:~ $ piTest -x
pi@RevPi6155:~ $ piTest -w Brunnen,1
Set bit 0 on byte at offset 81. Value 1
pi@RevPi6155:~ $ piTest -w Brunnen,0
Set bit 0 on byte at offset 81. Value 0

Also the devices were recognised in HomeKit (iPhone).

This is my (anonymised) config.json, placed in .homebridge/config.json:

{
	"bridge": {
		"name": "RevPiHomebridge",
		"username": "FF:FF:FF:FF:FF:FF",
		"port": 12345,
		"pin": "123-45-678"
	},
	"description": "Meine RevPi HomeBridge",
	"accessories": [{
		"accessory": "RevPiDO",
		"name": "Brunnen",
		"output_name": "Brunnen",
		"type": "switch"
	},
	{
		"accessory": "RevPiDO",
		"name": "Rasensprenger",
		"output_name": "O_2",
		"type": "switch"
	},
	{
		"accessory": "RevPiDO",
		"name": "Licht",
		"output_name": "O_3",
		"type": "light"
	},
	{
		"accessory": "RevPiCore",
		"name": "Mein RevPi Core"
	}
	],
	"platforms": []
}

And here's my config on the RevPi:
schnappschuss 2018-09-24 13 20 00

Any ideas?
Is there a way to view a log or to debug? The only thing I found it this:

pi@RevPi6155:~ $ tail /var/log/kern.log
Sep 24 13:36:33 RevPi6155 kernel: [   79.280529] piControl:
Sep 24 13:36:33 RevPi6155 kernel: [   79.389751] piControl: start data exchange
Sep 24 13:36:33 RevPi6155 kernel: [   79.612027] piControl: piDIOComm_Init done 0
Sep 24 13:36:33 RevPi6155 kernel: [   79.613722] piControl: sniff2A: input value 0
Sep 24 13:36:33 RevPi6155 kernel: [   79.613733] piControl: sniff2B: input value 0
Sep 24 13:36:33 RevPi6155 kernel: [   79.613743] piControl: set BridgeState to running
Sep 24 13:37:04 RevPi6155 kernel: [  110.605133] piControl piControl0: Invalid Ioctl
Sep 24 13:37:04 RevPi6155 kernel: [  110.626846] piControl piControl0: Invalid Ioctl
Sep 24 13:45:22 RevPi6155 kernel: [  608.376165] piControl piControl0: Invalid Ioctl
Sep 24 13:45:22 RevPi6155 kernel: [  608.393478] piControl piControl0: Invalid Ioctl

Any help appreciated...! :)

@markusk
Copy link
Author

markusk commented Sep 25, 2018

Looks like that I did a wrong turn in the instruction manual... I did a complete reinstall, now everything looks fine!

@markusk markusk closed this as completed Sep 25, 2018
@Christian1313
Copy link
Owner

Christian1313 commented Sep 27, 2018

Thanks, i already started to worry ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants