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

Using Bulbs with Remote Only? - 601rcw #17

Open
gotminer opened this issue Jan 18, 2020 · 23 comments
Open

Using Bulbs with Remote Only? - 601rcw #17

gotminer opened this issue Jan 18, 2020 · 23 comments

Comments

@gotminer
Copy link

Is there a way to connect bulbs to a zone on the remote and eliminate the gateway altogether? I saw someone mention it, but I never found any instructions.

I've been using my system with the remote only since the app stopped working, but I recently had a power outage at my house and it caused more than half of my bulbs to reset. The remote still works with one set of bulbs in one lighting fixture, but the other three fixtures just flash when I flip the light switch on the wall. At this point my preference would be to pair the bulbs with my remote and not use the gateway at all.

I've attempted to use the web interface with XAMPP, but I'm still getting a connection refused error when I enter the IP into a browser. Not sure where to go from here in terms of the web interface. I edited the config.inc.php file with the IP address of the gateway, pressed the sync gateway button on the gateway, but always get a connection refused error in my browser.

@bren1818
Copy link
Owner

bren1818 commented Jan 18, 2020 via email

@gotminer
Copy link
Author

I have tested with Windows Firewall Disabled and Enabled. There are no other firewalls on this machine. I can ping the gateway in both instances.

I am running XAMPP version 5.6.40.

I have deleted the .htaccess file.

Can the bulbs be put in discovery mode or whatever you call it when you flip the switch on-off-on-off-on-off-on to make them flash and then paired to a zone on the remote without using the gateway and web interface?

1

2

3

@bren1818
Copy link
Owner

bren1818 commented Jan 18, 2020 via email

@gotminer
Copy link
Author

Thanks so much for your help! I'm getting further than I was before. Apparently VMWare was using port 443 and preventing Apache from running. That part is working now, but when I type localhost or the ip of my machine into a browser I get the attached message.

What does it mean by "paste your token in the config.inc.php."? I don't see any instructions for this part.

4

@gotminer
Copy link
Author

I do see where to paste the token, but I guess my question is where do I get the token? The wiki says to paste the code that is generated during the gateway sync, but I'm not sure where I'm supposed to see that code.

5

@bren1818
Copy link
Owner

bren1818 commented Jan 18, 2020 via email

@gotminer
Copy link
Author

Hmmm. I'm positive the bridge ip is correct.

I did uncomment line 39 in the include.php file and checked the php.ini file. It appears to have curl enabled. Still having the same issue though.

6

7

8

9

@bren1818
Copy link
Owner

bren1818 commented Jan 19, 2020 via email

@sktaylortrash
Copy link
Collaborator

If this is XAMPP for Linux the web server doesn't have write permissions to the html directory by default. So it can't create tcp.token automatically. I've always just recommended creating the file manually and using chmod to set the permissions to 766 This should let the automatic token creation work properly

@gotminer
Copy link
Author

It's not running on a vm. I just had VMWare workstation installed on this computer for something else and it was using port 443 for something. After I removed the software, Apache connected without an issue.

Yes I can ping the ip of the bridge from this pc. Can't access via https though.

It's XAMPP for Windows. I did give "everyone" full control of c:\xampp.

@sktaylortrash
Copy link
Collaborator

Odd, but it still couldn't hurt to try making a blank file called tcp.token

@bren1818
Copy link
Owner

bren1818 commented Jan 19, 2020 via email

@gotminer
Copy link
Author

Yes, Bren. When I try to access the bridge ip via https, I get invalid cert and then a 403.

So I changed the lighting bridge port from 443 to 80 in the config.inc.php file and I get this ...

10

And then if I create a tcp.token file in htdocs folder, I get this ...

11

@bren1818
Copy link
Owner

bren1818 commented Jan 19, 2020 via email

@gotminer
Copy link
Author

What version of xampp would you suggest I go back to? I'm currently on 5.6.40.

@bren1818
Copy link
Owner

bren1818 commented Jan 19, 2020 via email

@gotminer
Copy link
Author

So I just performed the exact same thing on a machine with a fresh install of Win10 and disabled the firewall.

Standard install of xampp 7.4.1 minus perl and sendmail.

Started xampp. Apache is the only thing running in the xampp control panel.

Deployed application to htdocs folder.

Edited the config.inc file with only what you mentioned above.

Navigated to the page and got the 500 error.

Deleted htaccess, refreshed page, and got the "if you are seeing this, you haven't generated your token yet" error.

Pressed the sync button on the bridge and refreshed page. Same token error.

This is my bridge. Power light on. Lan light off. Wan light red. Lan light is off but bridge ip is still pingable. Anything out of the ordinary here? Anything in my router config that could be causing a problem?

bridge

@bren1818
Copy link
Owner

bren1818 commented Jan 19, 2020 via email

@gotminer
Copy link
Author

I'll leave it unplugged for several hours and see if that does anything. I've restarted it a zillion times, but only leaving it unplugged for a couple of seconds.

How do I set a static ip on the bridge? I can't get to a web interface when putting the bridge ip into a browser.

I have a friend who has a spare bridge that I'm going to test tomorrow.

If all else fails, I'll test with a different router.

Thanks for all of your help!

@bren1818
Copy link
Owner

bren1818 commented Jan 21, 2020 via email

@gotminer
Copy link
Author

I tested it on a different router and tried my friends gateway last week, still had the same problems.

Gave up on it for a few days and then was reading another thread where someone was powering on the gateway with the sync button held in. What exactly does that do? I tried it and ended up with a ip, but the wan light would never turn solid red like normal. And the sync button didn't work at that point. After it sat there for awhile, I rebooted it again. It booted up like normal and the wan light turned solid red.

So then I checked the webpage, got the sync message. Hit the sync button on the gateway, refreshed the page, and it finally worked! I can see my lighting groups and after it found all of the bulbs again, it knew which bulbs belonged to which group.

Whatever the gateway did when I powered it on while holding the sync button was what it needed. I'm really curious to know what it was.

@bren1818
Copy link
Owner

bren1818 commented Jan 27, 2020 via email

@TDBatt
Copy link

TDBatt commented Nov 25, 2020

Yes you can pair the bulbs directly to a remote. I bought a set that was programmed like that, a remote and two bulbs. I reprogrammed them to my gateway.

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

4 participants