homebridge-edomoticz Plugin

Moderator: leecollings

User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: eDomoticz Homebridge-Plugin

Post 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
IMG_6953.jpg (101.72 KiB) Viewed 2174 times
Last edited by deejc on Monday 22 August 2016 22:52, edited 2 times in total.
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: eDomoticz Homebridge-Plugin

Post 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"
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by simon_rb »

deejc wrote:check this out, make sure you pick a good one, most are pretty much made of butter it seems :-)
http://www.theregister.co.uk/2016/08/08 ... _an_idiot/
My point exactly lol. Think I'll leave it for now lol
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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"
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by deejc »

the "today" item is still in sync with the consumption but now shows kwh after it
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
fennec62
Posts: 43
Joined: Sunday 26 October 2014 22:11
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: homebridge-edomoticz Plugin

Post 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
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
fennec62
Posts: 43
Joined: Sunday 26 October 2014 22:11
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: homebridge-edomoticz Plugin

Post by fennec62 »

Ok thanks

So it's normal

Again thanks for your job

;) ;) ;)
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: homebridge-edomoticz Plugin

Post by Marci »

If you head into your homebridge-edomoticz folder and run...

Code: Select all

sudo git pull origin
...I’ve just added the necessary exemptions so it should now show up as a meter device.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
fennec62
Posts: 43
Joined: Sunday 26 October 2014 22:11
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: homebridge-edomoticz Plugin

Post 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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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
fennec62
Posts: 43
Joined: Sunday 26 October 2014 22:11
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: homebridge-edomoticz Plugin

Post by fennec62 »

It s ok just litle bug with parse
Attachments
image.png
image.png (308.02 KiB) Viewed 2221 times
User avatar
TheRamon
Posts: 126
Joined: Tuesday 12 July 2016 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: NL/DE
Contact:

Re: homebridge-edomoticz Plugin

Post by TheRamon »

@Marci: Can't seem to find the code for the above bug. Could you fix this one? :mrgreen: :mrgreen:

I have also pushed some changes to the MQTT branch, one regarding doorlocks, other one fixes a potential crash.
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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!
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
User avatar
TheRamon
Posts: 126
Joined: Tuesday 12 July 2016 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: NL/DE
Contact:

Re: homebridge-edomoticz Plugin

Post by TheRamon »

Haha nice! Good luck with that. Same here, day job priorities!
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post 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..
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
deejc
Posts: 168
Joined: Tuesday 22 September 2015 18:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5641
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by deejc »

/ignore :D
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.
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest