Comments (15)
Looks like an issue when trying to instantiate the scenes. Probably you don't have any scenes?
I released a new version 0.0.51 which should resolve this issue, please update and test. You can update by running the command:
sudo npm install [email protected] -g
from homebridge-homewizard.
hello Raymond,
I have updated too the next version.
the scene problem is solved
Now i,am getting this error, any idea what the problem is?
[2016-12-30 19:11:28] Loaded plugin: homebridge-homewizard
[2016-12-30 19:11:29] Registering platform 'homebridge-homewizard.HomeWizard'
[2016-12-30 19:11:29] ---
[2016-12-30 19:11:29] Loaded config.json with 0 accessories and 1 platforms.
[2016-12-30 19:11:29] ---
[2016-12-30 19:11:29] Loading 1 platforms...
[2016-12-30 19:11:29] Initializing HomeWizard platform...
[2016-12-30 19:11:29] Loading 0 accessories...
[2016-12-30 19:11:29] Running : homebridge-homewizard 0.0.51
[2016-12-30 19:11:30] Successfully retrieved accessories from HomeWizard
[2016-12-30 19:11:30] Failed to retrieve accessories from HomeWizard
[2016-12-30 19:11:30] [TypeError: Cannot read property 'switches' of undefined]
from homebridge-homewizard.
That would mean the plugin is having problems retrieving your devices from the HomeWizard.
Do you have any special characters in your password? That's an known issue.
Otherwise, please update to 0.0.52 and change debug to true in the config.json file and try to start it.
Please post the output here, CHECK THE OUTPUT, i'm not completely sure what the exact output will be since i cant test it so please check that there is no personally data like (passwords etc) in the output.
from homebridge-homewizard.
i just have capital and normal letters and digits so that should not be the problem.
I have updated to 0.0.52 and run debug.
I have replaced the password with , and will change that later just in case.
Here is the output i got
_handle: null,
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 9,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 167,
_bytesDispatched: 108,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Circular],
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
connection:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 9,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 167,
_bytesDispatched: 108,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Circular],
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
_header: 'GET /%3C%3E/get-sensors HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: { host: '192.168.2.2', accept: 'application/json' },
_headerNames: { host: 'host', accept: 'accept' },
agent:
Agent {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256 },
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/get-sensors',
parser: null,
res: [Circular] },
request:
Request {
domain: null,
_events:
{ error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function],
data: [Function],
end: [Function] },
_eventsCount: 5,
_maxListeners: undefined,
method: 'GET',
followRedirect: true,
followAllRedirects: true,
resolveWithFullResponse: true,
uri:
Url {
protocol: 'http:',
slashes: true,
auth: null,
host: '192.168.2.2',
port: 80,
hostname: '192.168.2.2',
hash: null,
search: null,
query: null,
pathname: '/%3CThuis237%3E/get-sensors',
path: '/%3CThuis237%3E/get-sensors',
href: 'http://192.168.2.2/%3C****%3E/get-sensors' },
readable: true,
writable: true,
explicitMethod: true,
_qs:
Querystring {
request: [Circular],
lib: [Object],
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {} },
_auth:
Auth {
request: [Circular],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null },
_oauth: OAuth { request: [Circular], params: null },
_multipart:
Multipart {
request: [Circular],
boundary: '4f3a3dbe-78f7-451e-979c-e723af39d48d',
chunked: false,
body: null },
_redirect:
Redirect {
request: [Circular],
followRedirect: true,
followRedirects: true,
followAllRedirects: true,
followOriginalHttpMethod: false,
allowRedirect: [Function],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false },
_tunnel:
Tunnel {
request: [Circular],
proxyHeaderWhiteList: [Object],
proxyHeaderExclusiveList: [] },
_rp_resolve: [Function],
_rp_reject: [Function],
_rp_promise:
Promise {
'0': undefined,
'1': undefined,
'2': undefined,
'3': undefined,
'4': undefined,
_bitField: 268435458,
_fulfillmentHandler0: undefined,
_rejectionHandler0: undefined,
_progressHandler0: undefined,
_promise0: undefined,
_receiver0: undefined,
_settledValue: [Circular] },
_rp_callbackOrig: undefined,
callback: [Function],
_rp_options:
{ method: 'GET',
followRedirect: true,
followAllRedirects: true,
resolveWithFullResponse: true,
json: true,
uri: 'http://192.168.2.2/<>/get-sensors',
callback: undefined,
transform: undefined,
simple: true },
headers: { accept: 'application/json' },
setHeader: [Function],
hasHeader: [Function],
getHeader: [Function],
removeHeader: [Function],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function: RP$callback],
proxy: null,
tunnel: false,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 80,
host: '192.168.2.2',
path: '/%3C%3E/get-sensors',
_json: true,
httpModule:
{ IncomingMessage: [Object],
METHODS: [Object],
OutgoingMessage: [Object],
ServerResponse: [Object],
STATUS_CODES: [Object],
Agent: [Object],
globalAgent: [Object],
ClientRequest: [Object],
request: [Function],
get: [Function],
connectionListener: [Function: connectionListener],
Server: [Object],
createServer: [Function],
Client: [Function: deprecated],
createClient: [Function: deprecated] },
agentClass: { [Function: Agent] super: [Object], defaultMaxSockets: Infinity },
agent:
Agent {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256 },
_started: true,
href: 'http://192.168.2.2/%3C****%3E/get-sensors',
req:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'GET /%3C**%3E/get-sensors HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/get-sensors',
parser: null,
res: [Circular] },
ntick: true,
response: [Circular],
originalHost: '192.168.2.2',
originalHostHeaderName: 'host',
responseContent: [Circular],
_destdata: true,
_ended: true,
_callbackCalled: true },
toJSON: [Function: responseToJSON],
caseless:
Caseless {
dict: { 'content-type': 'application/json', connection: 'close' } },
read: [Function],
body:
{ status: 'failed',
error: 1,
version: '3.372',
request: { route: '/get-sensors' } } }
[2016-12-30 19:47:16] IncomingMessage {
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: false,
domain: null,
_events:
{ end: [ [Function: responseOnEnd], [Function] ],
close: [ [Function], [Function] ],
data: [Function],
error: [Function] },
_eventsCount: 4,
_maxListeners: undefined,
socket:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: false,
domain: null,
_events:
{ end: [Object],
finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
free: [Function: onFree],
close: [Object],
agentRemove: [Function: onRemove],
drain: [Function: ondrain],
error: [Function: socketErrorListener],
data: [Function: socketOnData] },
_eventsCount: 9,
_maxListeners: undefined,
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
needDrain: false,
ending: true,
ended: true,
finished: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: true,
errorEmitted: false },
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 162,
_bytesDispatched: 103,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Circular],
connection: [Circular],
_header: 'GET /%3C****%3E/gplist HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/gplist',
parser: null,
res: [Circular] },
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
connection:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: false,
domain: null,
_events:
{ end: [Object],
finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
free: [Function: onFree],
close: [Object],
agentRemove: [Function: onRemove],
drain: [Function: ondrain],
error: [Function: socketErrorListener],
data: [Function: socketOnData] },
_eventsCount: 9,
_maxListeners: undefined,
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
needDrain: false,
ending: true,
ended: true,
finished: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: true,
errorEmitted: false },
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 162,
_bytesDispatched: 103,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Circular],
connection: [Circular],
_header: 'GET /%3C****%3E/gplist HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/gplist',
parser: null,
res: [Circular] },
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
httpVersionMajor: 1,
httpVersionMinor: 0,
httpVersion: '1.0',
complete: true,
headers: { 'content-type': 'application/json', connection: 'close' },
rawHeaders: [ 'Content-Type', 'application/json', 'Connection', 'close' ],
trailers: {},
rawTrailers: [],
upgrade: false,
url: '',
method: null,
statusCode: 200,
statusMessage: 'OK',
client:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: false,
domain: null,
_events:
{ end: [Object],
finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
free: [Function: onFree],
close: [Object],
agentRemove: [Function: onRemove],
drain: [Function: ondrain],
error: [Function: socketErrorListener],
data: [Function: socketOnData] },
_eventsCount: 9,
_maxListeners: undefined,
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
needDrain: false,
ending: true,
ended: true,
finished: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: true,
errorEmitted: false },
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 162,
_bytesDispatched: 103,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Circular],
connection: [Circular],
_header: 'GET /%3C****%3E/gplist HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/gplist',
parser: null,
res: [Circular] },
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
_consuming: true,
_dumped: false,
req:
ClientRequest {
domain: null,
_events:
{ socket: [Object],
response: [Function: bound ],
error: [Function: bound ],
drain: [Function] },
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 9,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 162,
_bytesDispatched: 103,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Circular],
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
connection:
Socket {
_connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 9,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: true,
bytesRead: 162,
_bytesDispatched: 103,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Circular],
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 },
_header: 'GET /%3C****%3E/gplist HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: { host: '192.168.2.2', accept: 'application/json' },
_headerNames: { host: 'host', accept: 'accept' },
agent:
Agent {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256 },
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/gplist',
parser: null,
res: [Circular] },
request:
Request {
domain: null,
_events:
{ error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function],
data: [Function],
end: [Function] },
_eventsCount: 5,
_maxListeners: undefined,
method: 'GET',
followRedirect: true,
followAllRedirects: true,
resolveWithFullResponse: true,
uri:
Url {
protocol: 'http:',
slashes: true,
auth: null,
host: '192.168.2.2',
port: 80,
hostname: '192.168.2.2',
hash: null,
search: null,
query: null,
pathname: '/%3C****%3E/gplist',
path: '/%3C****%3E/gplist',
href: 'http://192.168.2.2/%3C****%3E/gplist' },
readable: true,
writable: true,
explicitMethod: true,
_qs:
Querystring {
request: [Circular],
lib: [Object],
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {} },
_auth:
Auth {
request: [Circular],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null },
_oauth: OAuth { request: [Circular], params: null },
_multipart:
Multipart {
request: [Circular],
boundary: '95cb6c74-69dc-424a-8d60-88f2b689e4c6',
chunked: false,
body: null },
_redirect:
Redirect {
request: [Circular],
followRedirect: true,
followRedirects: true,
followAllRedirects: true,
followOriginalHttpMethod: false,
allowRedirect: [Function],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false },
_tunnel:
Tunnel {
request: [Circular],
proxyHeaderWhiteList: [Object],
proxyHeaderExclusiveList: [] },
_rp_resolve: [Function],
_rp_reject: [Function],
_rp_promise:
Promise {
'0': undefined,
'1': undefined,
'2': undefined,
'3': undefined,
'4': undefined,
_bitField: 268435458,
_fulfillmentHandler0: undefined,
_rejectionHandler0: undefined,
_progressHandler0: undefined,
_promise0: undefined,
_receiver0: undefined,
_settledValue: [Circular] },
_rp_callbackOrig: undefined,
callback: [Function],
_rp_options:
{ method: 'GET',
followRedirect: true,
followAllRedirects: true,
resolveWithFullResponse: true,
json: true,
uri: 'http://192.168.2.2/<>/gplist',
callback: undefined,
transform: undefined,
simple: true },
headers: { accept: 'application/json' },
setHeader: [Function],
hasHeader: [Function],
getHeader: [Function],
removeHeader: [Function],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function: RP$callback],
proxy: null,
tunnel: false,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 80,
host: '192.168.2.2',
path: '/%3C%3E/gplist',
_json: true,
httpModule:
{ IncomingMessage: [Object],
METHODS: [Object],
OutgoingMessage: [Object],
ServerResponse: [Object],
STATUS_CODES: [Object],
Agent: [Object],
globalAgent: [Object],
ClientRequest: [Object],
request: [Function],
get: [Function],
connectionListener: [Function: connectionListener],
Server: [Object],
createServer: [Function],
Client: [Function: deprecated],
createClient: [Function: deprecated] },
agentClass: { [Function: Agent] super: [Object], defaultMaxSockets: Infinity },
agent:
Agent {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256 },
_started: true,
href: 'http://192.168.2.2/%3C****%3E/gplist',
req:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'GET /%3C****%3E/gplist HTTP/1.1\r\nhost: 192.168.2.2\r\naccept: application/json\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/%3C****%3E/gplist',
parser: null,
res: [Circular] },
ntick: true,
response: [Circular],
originalHost: '192.168.2.2',
originalHostHeaderName: 'host',
responseContent: [Circular],
_destdata: true,
_ended: true,
_callbackCalled: true },
toJSON: [Function: responseToJSON],
caseless:
Caseless {
dict: { 'content-type': 'application/json', connection: 'close' } },
read: [Function],
body:
{ status: 'failed',
error: 1,
version: '3.372',
request: { route: '/gplist' } } }
[2016-12-30 19:47:16] Successfully retrieved accessories from HomeWizard
[2016-12-30 19:47:17] Failed to retrieve accessories from HomeWizard
[2016-12-30 19:47:17] [TypeError: Cannot read property 'switches' of undefined]
pi@raspberrypi:~ $
from homebridge-homewizard.
o and i also made a scene in the homewizard
just in case
from homebridge-homewizard.
Both the api calls are failing, don't know why. Either the wrong ip, or the password is incorrect.
What do you get if you open this url in your browser? Obviously replace the password.
http://192.168.2.2/passwordhere/get-sensors
from homebridge-homewizard.
this is what i get.
{"preset":0,"time":"2016-12-30 20:55","switches":[{"id":0,"name":"Boven voorkamer","type":"switch","status":"on","favorite":"no"},{"id":1,"name":"Boven schieten","type":"switch","status":"off","favorite":"no"},{"id":2,"name":"Beneden koelkas","type":"switch","status":"off","favorite":"no"},{"id":3,"name":"Beneden voor","type":"switch","status":"off","favorite":"no"},{"id":4,"name":"Zolder","type":"switch","status":"off","favorite":"no"},{"id":5,"name":"Plafoniere 0","type":"switch","status":"off","favorite":"no"},{"id":6,"name":"Slaapkamer tel ","type":"switch","status":"off","favorite":"no"},{"id":7,"name":"Computers","type":"switch","status":"on","favorite":"no"},{"id":8,"name":"Tv 1 ste ","type":"switch","status":"on","favorite":"no"},{"id":9,"name":"Tv beneden","type":"switch","status":"off","favorite":"no"},{"id":10,"name":"Schilderij","type":"switch","status":"on","favorite":"no"},{"id":11,"name":"Ben tafel","type":"switch","status":"off","favorite":"no"}],"uvmeters":[],"windmeters":[],"rainmeters":[],"thermometers":[{"id":0,"name":"Thermometer","code":"3145631","model":1,"lowBattery":"yes","version":2.31,"te":18.9,"hu":45,"te+":19.0,"te+t":"19:13","te-":0.1,"te-t":"15:15","hu+":46,"hu+t":"18:42","hu-":45,"hu-t":"15:15","outside":"yes","favorite":"no"}],"weatherdisplays":[], "energymeters": [], "energylinks": [], "heatlinks": [], "hues": [], "scenes": [{"id": 0, "name": "Woonk fel", "favorite": "no"},{"id": 1, "name": "Inbraak", "favorite": "no", "camera": {"id": 0, "preset": -1}}], "kakusensors": [{"id":0,"name":"Rookmelder trap","status":null,"type":"smoke","favorite":"no","timestamp":"00:00","cameraid":0},{"id":1,"name":"Tuindeur","status":null,"type":"contact","favorite":"no","timestamp":"00:00","cameraid":null},{"id":2,"name":"Voordeur","status":null,"type":"contact","favorite":"no","timestamp":"00:00","cameraid":null},{"id":3,"name":"Schemersensor ","status":"yes","type":"light","favorite":"no","timestamp":"16:31","cameraid":null},{"id":4,"name":"Raam ben rechts","status":null,"type":"contact","favorite":"no","timestamp":"00:00","cameraid":null},{"id":5,"name":"Raam ben links","status":null,"type":"contact","favorite":"no","timestamp":"00:00","cameraid":null},{"id":6,"name":"Sensor beneden","status":"yes","type":"light","favorite":"no","timestamp":"16:31","cameraid":null}], "cameras": [{"id":0,"model":30,"name":"Boven","username":"Sebo","password":"","ip":"192.168.2.6","port":"80","mode":0,"url":{"path":"snapshot.cgi","query":"user=Sebo&pwd=","auth":""},"presets":[]}]}}
I think they are all the sensors, camera's and scenes
from homebridge-homewizard.
Is the problem maybe that the ip camera is also using port 80? Or is that no problem?
from homebridge-homewizard.
hi Raymond,
i have installed everything again on a different pi 3, but i still have the same result.
Any thoughts?
Sorry for the questions
from homebridge-homewizard.
Hi Raymond and Sebojan,
Best wishes for the new year!
I have kind of the same problem.. with a few extra lines after the TypeError:
[1/2/2017, 11:57:13 AM] Loaded plugin: homebridge-homewizard
[1/2/2017, 11:57:13 AM] Registering platform 'homebridge-homewizard.HomeWizard'
[1/2/2017, 11:57:13 AM] ---
[1/2/2017, 11:57:13 AM] Loaded config.json with 0 accessories and 1 platforms.
[1/2/2017, 11:57:13 AM] ---
[1/2/2017, 11:57:13 AM] Loading 1 platforms...
[1/2/2017, 11:57:13 AM] Initializing HomeWizard platform...
[1/2/2017, 11:57:13 AM] Loading 0 accessories...
[1/2/2017, 11:57:13 AM] Running : homebridge-homewizard 0.0.52
[1/2/2017, 11:57:19 AM] Successfully retrieved accessories from HomeWizard
[1/2/2017, 11:57:19 AM] Failed to retrieve accessories from HomeWizard
[1/2/2017, 11:57:19 AM] TypeError: Cannot read property 'switches' of undefined
at AccessoriesFactory.getAccessories (/usr/lib/node_modules/homebridge-homewizard/dist/accessories.js:93:35)
at /usr/lib/node_modules/homebridge-homewizard/dist/platform.js:69:41
at _fulfilled (/usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:796:13)
at /usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:604:44
at runSingle (/usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:137:13)
at flush (/usr/lib/node_modules/homebridge-homewizard/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
pi@raspberrypi:~ $
from homebridge-homewizard.
Homebridge runs and retrieves all accessories. Unfortunately I don't know how I solved it. Had many try-out config's, even one where the <> where still around the password...
Now I don't get it paired... but that's another thing.
sorry for the interruption on this threat...
Pytr
from homebridge-homewizard.
I don't have any clue what is causing the problem. Might be something config file related, network related, code wise everything looks fine and is working for most people.
I also can't test this to reproduce it since i don't have a HomeWizard anymore.
from homebridge-homewizard.
Hi Raymond,
The cause in my case is clearly that I am a complete noob in any coding/linux whatever kind of thing.
There was an article in Iculture about this that me me try. They make it look simple but if you run into problems the lack of knowledge shows....
When I copied the written script on your page into the config.json it worked.
I have it running now so that Homebridge loads on boot and everything works fine.
Thank you for your plugin and for all the work and time you've invested in that! I am having great fun with it!
all the best,
Pytr.
from homebridge-homewizard.
Hello Raymond,
I also have found the article on culture and thought too give it a try. With no programming background.
Well i have it working. I had forgotten to take the <> away at the password entry (Yes i know stupid)
Anyway Thanks for the help!!! And thanks for making the plugin. It is good fun now it is working!!!
All the best
SeboJan
from homebridge-homewizard.
Great it's working for you guys, enjoy 👍 Send my regards to Siri ;)
from homebridge-homewizard.
Related Issues (20)
- Unhandled rejection RequestError
- homebridge stops after one or two hours HOT 20
- Failed to retrieve accessories from HomeWizard
- HomeBridge does not work when no connection to HomeWizard can be made
- Homewizard/Smartwares Water Detector support HOT 1
- Homebridge stops after a while (refresh) HOT 8
- No devices get initialized
- Energylink support HOT 1
- Dimmable lights not working properly HOT 2
- Homewizard not visible in Home App HOT 5
- HomeWizard plug-in not working with harmonyhub plug-in
- HomeWizard plug-in not working with harmonyhub plugin
- error at launch : lost all devices homewizard HOT 3
- Unable to update to higher version of Node HOT 1
- [HomeWizard] Refresh... HOT 6
- will not load accessorys HOT 1
- Somfy sunscreen open=close and close=open HOT 2
- Homewizard Smart Plug
- UDP Payload for pushserver
- Notifications only working when opening the home app
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-homewizard.