UPDATE:- Gave it 5 mins and tried again and now works.. Hmmm

Still can't invite anyone to join the house!
Moderator: leecollings
Code: Select all
{"command":"switchlight","idx":409,"level":20,"switchcmd":"Set Level"}
Code: Select all
{"command":"switchlight","idx":376,"level":41,"switchcmd":"Set Level"}
Code: Select all
Lamp kantoor Light/Switch Switch Set Level: 40 %
Code: Select all
mosquitto_pub -h localhost -t "domoticz/in" -m '{"command":"switchlight","idx":409,"level":20,"switchcmd":"Set Level"}'
Code: Select all
mosquitto_pub -h localhost -t "domoticz/in" -m '{ "idx" : 409, "nvalue" : 2, "svalue" : "20" }'
Code: Select all
domoticz/out {
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Light/Switch",
"id" : "000141E8",
"idx" : 409,
"name" : "Sonos kantoor volume",
"nvalue" : 2,
"stype" : "Switch",
"svalue1" : "20",
"switchType" : "Dimmer",
"unit" : 1
}
Code: Select all
sudo npm uninstall homebridge-edomoticz
Code: Select all
sudo npm install git+https://[email protected]/PatchworkBoy/homebridge-edomoticz.git
Code: Select all
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[11/15/2016, 12:30:02 AM] Loaded plugin: homebridge-edomoticz
[11/15/2016, 12:30:02 AM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[11/15/2016, 12:30:02 AM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/15/2016, 12:30:02 AM] ---
[11/15/2016, 12:30:02 AM] Loaded config.json with 0 accessories and 1 platforms.
[11/15/2016, 12:30:02 AM] ---
[11/15/2016, 12:30:02 AM] Loading 1 platforms...
[11/15/2016, 12:30:02 AM] [eDomoticz] Initializing eDomoticz platform...
/usr/lib/node_modules/homebridge-edomoticz/index.js:158
this.requestHeaders['Authorization'] = 'Basic ' + this.authorizationToken;
^
TypeError: Cannot set property 'Authorization' of undefined
at Object.eDomoticzPlatform (/usr/lib/node_modules/homebridge-edomoticz/index.js:158:42)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:291:32)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:77:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
Same problem here. Authentication seems broken till last commit. It used to work with the git version 2 days ago.frave wrote:So when I removed the row with "server": "username:[email protected]" from my config.json everything worked. Colors can now be changed using the original MiLight controller hardware. But the authentication looks broken in the latest GIT version. I therefore set Domoticz to accept calls from localhost. Can somebody confirm this is broken or help me in finding out what I did wrong?
@TheRamonG3rard wrote:TheRamon wrote:I have changed the following code in domoticz_accessory.jstoCode: Select all
var dim = (level / this.factor == 15) ? 16 : level / this.factor;
and then it is working fine.Code: Select all
var dim = (level / this.factor == 15) ? 16 : (level / this.factor) + 1;
Not sure although if that is the best solution.
Code: Select all
2016-11-15 15:59:17.967 MQTT: Topic: domoticz/in, Message: {"command":"switchlight","idx":14,"level":101,"switchcmd":"Set Level"}
Level 101! lolTheRamon wrote:Yeah that would.. But I'm not quite fond of fixing the issue in the plugin. I was thinking of implementing that quickfix, but it's like a patch to the problem.
I actually believe the problem should be resolved on Domoticz' side. We'll have to undo our fix again, too, when Domoticz fixes the problem.
Anyhow, have just implemented the quickfix on master. Mehhh..![]()
Look at thisLooks just weird right?
Code: Select all
2016-11-15 15:59:17.967 MQTT: Topic: domoticz/in, Message: {"command":"switchlight","idx":14,"level":101,"switchcmd":"Set Level"}
Hi TheRamon, thanks for your efforts. The authorization is working again.TheRamon wrote:I can confirm Authorization broke in the last commit. I was a bit too enthusiastic with the refactoring and all. Have just fixed this issue on git / master. My apologies.
PS. G3rard: good find! Let me investigate. Looks like this is a Domoticz thing.
I'm finding it very hard to reproduce this. Does anyone else have the same problem? When switching brightness of a LED it sends the "On" command right after. Might be that Domoticz doesn't know the device is actually on. Can anyone test?hpapagaj wrote:Hi,
So it's not possible to fix my bug?
viewtopic.php?f=36&t=10272&start=1060#p103662
Code: Select all
[domoticz]/json.htm?type=devices&rid=25
Done - npm updated (coincidentally, to v1.0.1)TheRamon wrote:Nope, did not have one until now. xtheramon![]()
I'll have to figure that out though. NPM 101!
You install the homebridge-http plugin as part of the procedure you link to - Step 4, command 3.mkanon wrote:...following this tutorial https://github.com/nfarina/homebridge/w ... on-Windows. And it worked!
*snip*
how do I install them on a windows machine?
Sure, here it is:TheRamon wrote:hpapagaj wrote:Hi,
@hpapagaj: Can you post the output of the following call:
Code: Select all
[domoticz]/json.htm?type=devices&rid=25
Code: Select all
{
"ActTime" : 1479303983,
"ServerTime" : "2016-11-16 14:46:23",
"Sunrise" : "06:54",
"Sunset" : "16:05",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 7,
"HardwareName" : "Quinled_1",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "060105",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2016-11-16 00:42:29",
"Level" : 68,
"LevelInt" : 22,
"MaxDimLevel" : 32,
"Name" : "LED",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "LightwaveRF",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Lighting 5",
"TypeImg" : "dimmer",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "25"
}
],
"status" : "OK",
"title" : "Devices"
}
Also setting the dim level via JSON is 1 off.TheRamon wrote:I can confirm Authorization broke in the last commit. I was a bit too enthusiastic with the refactoring and all. Have just fixed this issue on git / master. My apologies.
PS. G3rard: good find! Let me investigate. Looks like this is a Domoticz thing.
Code: Select all
http://<domoip:port>/json.htm?type=command¶m=switchlight&idx=409&switchcmd=Set%20Level&level=20
Funny you say that I noticed this today. Changed the Denon volume to -81 from 80 to compensate which seems to work. Only thing I can think of is it's 0-99 rather than 1 - 100 and domoticz isn't compensating for it..G3rard wrote:Also setting the dim level via JSON is 1 off.sets the volume to 19%. So must indeed by a Domoticz thing.Code: Select all
http://<domoip:port>/json.htm?type=command¶m=switchlight&idx=409&switchcmd=Set%20Level&level=20
Users browsing this forum: No registered users and 1 guest