Page 30 of 86
Re: eDomoticz Homebridge-Plugin
Posted: Monday 22 August 2016 22:19
by deejc
Marci wrote:
Am freezing addition of new features to the Master branch as I get the feeling we’ll be making MQTT-integration the default Release version sooner rather than later.
mine has been OK, except i had an issue where it wouldn't respond at all, even ssh to my pi wouldn't work.
i wasn't too bothered and then later it just started working... on another point, the Youless code seems a bit weird.
the "Today" item seems to reflect the "Consumption" item, both changing together.

- IMG_6953.jpg (101.72 KiB) Viewed 2172 times
Re: eDomoticz Homebridge-Plugin
Posted: Monday 22 August 2016 22:41
by deejc
Marci wrote:
<<Existing MQTT Branch users can join back in here!>>
Code: Select all
sudo rm -rf ~/.homebridge/accessories/*
sudo rm -rf ~/.homebridge/persist/*
cd /usr/local/lib/node_modules/homebridge-edomoticz/
sudo git pull origin
sudo npm install
Now restart homebridge, and re-pair your device, and set your rooms back up etc and test it all out!
Any issues, let us know on here...
i ran the above and got this
Code: Select all
Updating 8cd24e4..277fecd
error: Your local changes to the following files would be overwritten by merge:
lib/domoticz_accessory.js
Please, commit your changes or stash them before you can merge.
Aborting
oh btw, my folder was called homebridge-eDomoticz "note CAP D", i renamed it little "d"
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 22:48
by simon_rb
My point exactly lol. Think I'll leave it for now lol
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 23:16
by Marci
deejc wrote:Marci wrote:
<<Existing MQTT Branch users can join back in here!>>
Code: Select all
sudo rm -rf ~/.homebridge/accessories/*
sudo rm -rf ~/.homebridge/persist/*
cd /usr/local/lib/node_modules/homebridge-edomoticz/
sudo git pull origin
sudo npm install
Now restart homebridge, and re-pair your device, and set your rooms back up etc and test it all out!
Any issues, let us know on here...
i ran the above and got this
Code: Select all
Updating 8cd24e4..277fecd
error: Your local changes to the following files would be overwritten by merge:
lib/domoticz_accessory.js
Please, commit your changes or stash them before you can merge.
Aborting
oh btw, my folder was called homebridge-eDomoticz "note CAP D", i renamed it little "d"
run sudo git stash, then sudo git pull origin
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 23:20
by deejc
Marci wrote:
run sudo git stash, then sudo git pull origin
i got this, i tried to add the email / user name but it didn't work
Code: Select all
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@raspberrypi.(none)')
Cannot save the current index state
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 23:23
by deejc
i sudo-ed it and it worked
sudo git config --global user.email "
[email protected]"
sudo git config --global user.name "Your Name"
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 23:29
by deejc
the "today" item is still in sync with the consumption but now shows kwh after it
Re: homebridge-edomoticz Plugin
Posted: Monday 22 August 2016 23:44
by Marci
So needs /1000, yes? Eg: 800w becomes 0.800kW
(kWh is the 'correct' unit)
Edit: ignore, just seen earlier post. Yep - will address that.
Re: homebridge-edomoticz Plugin
Posted: Tuesday 23 August 2016 18:16
by fennec62
hi
i use mqtt branch
and power energy view in switch
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "103111.844",
"CounterDeliv" : "0.000",
"CounterDelivToday" : "0.000 kWh",
"CounterToday" : "22.282 kWh",
"CustomImage" : 0,
"Data" : "50992183;52119655;0;0;700;0",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 6,
"HardwareName" : "Virual Switch",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "82496",
"LastUpdate" : "2016-08-23 18:07:43",
"Name" : "EDF2",
"Notifications" : "false",
"PlanID" : "1",
"PlanIDs" : [ 1, 2 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "700 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "497"
}
and mqtt message is ok
Code: Select all
Name: EDF2
Device: P1 Smart Meter,Energy
Is Switch: true
SwitchTypeVal: 0
MQTT Message:
{
"Battery": 255,
"RSSI": 12,
"dtype": "P1 Smart Meter",
"id": "82496",
"idx": 497,
"name": "EDF2",
"nvalue": 0,
"stype": "Energy",
"svalue1": "50992264",
"svalue2": "52119655",
"svalue3": "0",
"svalue4": "0",
"svalue5": "830",
"svalue6": "0",
"unit": 1
}
But in EVE EDF2 is switch on/off
Is it normal ?
Thanks a lot for your job
Re: homebridge-edomoticz Plugin
Posted: Tuesday 23 August 2016 20:17
by Marci
Just needs an exemption dropping in for that type & subtype combination... will get it added shortly.
As you're the first with that particular sensor and combination of values I may need to figure out how to parse it before it'll show correctly via HomeKit. Might see readings in the wrong place basically.
Re: homebridge-edomoticz Plugin
Posted: Tuesday 23 August 2016 20:24
by fennec62
Ok thanks
So it's normal
Again thanks for your job

Re: homebridge-edomoticz Plugin
Posted: Tuesday 23 August 2016 21:33
by Marci
If you head into your homebridge-edomoticz folder and run...
...I’ve just added the necessary exemptions so it should now show up as a meter device.
Re: homebridge-edomoticz Plugin
Posted: Tuesday 23 August 2016 23:47
by fennec62
thanks a lot
i install and i test when i come back in my home
just see the log for the moment and it's change
[eDomoticz] MQTT Message received for EDF2.
Name: EDF2
Device: P1 Smart Meter,Energy
Is Switch: false
SwitchTypeVal: false
MQTT Message:
{
"Battery": 255,
"RSSI": 12,
"dtype": "P1 Smart Meter",
"id": "82496",
"idx": 497,
"name": "EDF2",
"nvalue": 0,
"stype": "Energy",
"svalue1": "50996812",
"svalue2": "52119655",
"svalue3": "0",
"svalue4": "0",
"svalue5": "690",
"svalue6": "0",
"unit": 1
}
So when i come back i feedback
And i don't have apple TV so can't control outside but i have VPN with openswan, do yo have a idea how can i do for control homekit over VPN
Same ip but nothing, perhaps Broadcast ??
Thanks a lot
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 0:01
by simon_rb
Just bought a new raspberry pi 3 and used the latest stable image. Copied my settings over and just wondered how long until the MQTT version is the main version? Cheers
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 6:24
by fennec62
It s ok just litle bug with parse
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 14:33
by TheRamon
@Marci: Can't seem to find the code for the above bug. Could you fix this one?
I have also pushed some changes to the MQTT branch, one regarding doorlocks, other one fixes a potential crash.
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 14:49
by Marci
Aye will do - day job taking priority today tho - I'm a Data Manager for a UK Academy & Sixth Form, and today is GCSE Results download / analysis day. Will have a look at the weekend!
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 14:54
by TheRamon
Haha nice! Good luck with that. Same here, day job priorities!
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 23:38
by deejc
somethings happened... i ran sudo git pull origin and updated but now i get no log entries..mqtt seems to not work any more.
i have installed the panasonic tv plugin, and everything is actually working but not the mqtt part, i have deleted the persist and accessories etc, rebooted .. all the usual.
i have subscribed to mqtt from my macbook and i do see the messages.
its reverted back to the original plugins response..
Re: homebridge-edomoticz Plugin
Posted: Wednesday 24 August 2016 23:47
by deejc
/ignore
it IS working, just nothing is being logged, the log file is my goto as soon as i install / check something and the mqtt messages are no longer logging but it does seem to be working.