Comments (7)
Try this before you execute homebridge:
export NODE_TLS_REJECT_UNAUTHORIZED=0
from homebridge-homeassistant.
Yeah, it sounds like it's rejecting your self signed cert. Are you using a self signed cert, or a Let's Encrypt cert. If the former, you should consider migrating to the later.
from homebridge-homeassistant.
👍 for @maddox. Closing as this isn't a homebridge-homeassistant issue.
from homebridge-homeassistant.
Added a note about this use case to the README here.
from homebridge-homeassistant.
👏
from homebridge-homeassistant.
Hi,
I'm running into the same problem.
I have an trusted certificate valid for my DNS address but not my local HA address. HA has no issues and works great with this certificate.
What do you exactly mean with
Try this before you execute homebridge:
export NODE_TLS_REJECT_UNAUTHORIZED=0
How can I do this export NODE_TLS_REJECT_UNAUTHORIZED=0
when I autostart Homebridge with systemd.server?
I dont get it to work
from homebridge-homeassistant.
OK found a nice and easy solution.
I simply modified the homebridge executable set up file .
This file is located here:
/usr/lib/node_modules/homebridge/bin
Just added the command: process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
Then the file look like this:
#!/usr/bin/env node
//
// This executable sets up the environment and runs the HomeBridge CLI.
//
'use strict';
process.title = 'homebridge';
// Find the HomeBridge lib
var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
// Run HomeBridge
require(lib + '/cli')();
Now restart homebridge service. And the ssl errors are gone.
NOTE: THIS DISABLES ALL KINDS OF SECURITY CHECKS
I think everything is local if I put in the local home Assistant IP in config.json, so I hope this is not a big deal.
I dont know if this is the right way but this works for me and works this autostart and systemd service.
from homebridge-homeassistant.
Related Issues (20)
- Notifications in home app only shows up when home app open HOT 2
- MQTT Cover Tilt ( 0 - 100 % in Homekit ) HOT 3
- Binary Sensor missing categories
- Home Assistant tries to set temperature to Celsius HOT 1
- Blinds/shutters state not updating in the homekit
- Homekit integration issue
- Feature - read password from external file
- Home Assistant can't readd homekit Accessory HOT 1
- Home App turns off heating
- MQTT Fan "low" speed not usable via Homebridge HOT 1
- Missing device classes break homebridge HOT 1
- Air Quality (BME680) HOT 3
- Config.json to Home Assistant HOT 5
- [HomeAssistant] Failed getting devices: Error: connect ECONNREFUSED 192.168.1.101:8123. Retrying... HOT 1
- What is the difference between Homebridge and HomeKit component plugins? HOT 3
- Does this work on Hassbian? HOT 2
- Light sensor: home assistant passes type "lm" which doesn't match type "lux" HOT 3
- Only able to select 2 fan speeds when I have 3 in Home Assistant. HOT 5
- problems with logging granularity
- RFXtrx Cover status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-homeassistant.