homebridge-edomoticz Plugin

Moderator: leecollings

User avatar
Marci
Posts: 532
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 »

As per original post, submit JSON for non-recognised devices to the GitHub issues page. I can't account for every sensor combo as I don't own every combo to know what and how they output their data via domoticz. Today consumption and pressure work fine here for my sensors...

Costings are done by the Eve app, nothing to do with HomeKit, Domoticz or homebridge... it needs full log outputs to allow you to flip it to day / week / month costing - too complicated to write as it's unique to Eve and Elgato's hardware.

TL:DR - if you want Today costing, buy an Elgato Eve!
Last edited by Marci on Sunday 04 September 2016 10:53, edited 1 time in total.
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!
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 »

Is today consumption working ok on your setup Marci? Mine still works for a second then changes to total consumption lol


Sent from my iPhone using Tapatalk
User avatar
Marci
Posts: 532
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 »

simon_rb wrote:Is today consumption working ok on your setup Marci? Mine still works for a second then changes to total consumption lol


Sent from my iPhone using Tapatalk
Yup. S'cos Domoticz provides the today value by http-gotten-JSON, but does NOT provide it by MQTT. When first MQTT packet arrives for your meter, all it contains is current, and this overwrites the today val. If you pull-down to trigger an http-get of the sensor, you should find it flips back to correct reading til the next MQTT packet arrives. Different meters / sensors = different combos of type and subtype so getting all the cases correct is proving tricky.

My meters are virtual sensors looking to my own Python scripts which read pulses from Reed switches on GPIO pins, so I can tweak everything to suit for me.
Last edited by Marci on Sunday 04 September 2016 11:03, edited 1 time in total.
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!
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 »

Ah ok, mine read off owl sensors, one to detect solar PV and the other for house usage. Issue with owl is they only update every minute, you get an appreciation of usage and generation but it's not that accurate.


Sent from my iPhone using Tapatalk
User avatar
Marci
Posts: 532
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 »

Ah. Mine update on every detected pulse (every time furthest right wheel on meter rotates past 0), so not only do I have w/kWh readings (Python scripts get latest data from eOn to convert units to w/kWh and price acc to my tariff), I have virtual counters which show genuine meter readings in units etc. which match the physical meters.

All of my sensors and switches are DIY rather than bought.
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!
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 »

Thats awesome! I might have to think about doing that. I assume I'd just need one raspberry pi connected for both readings. Issue would be getting the power to the pi as I'd need the solar PV in the actually electric box... hmmm.. maybe another project.

Out of curiosity how many Pis do you have in your house?
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by MikeF »

MikeF wrote:
it would be good if Pressure (from BMP180 / BME280 devices) was recognised by Eve.
Sorry, I wasn't clear here - Eve does recognise my pressure devices, it's just that they display with the (HomeKit) unrecognised type icon:

Image
Is it worth raising a GitHub issue for this?

Today consumption displaying OK in Eve - but with unrecognised type icon.
User avatar
Marci
Posts: 532
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 »

In MQTT version pressure service is sorted. Today won't be as it IS a custom servicetype not covered by Eve.

Wait for MQTT version to hit final release as I'm no longer updating the non-MQTT version.
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
Marci
Posts: 532
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 »

simon_rb wrote:Thats awesome! I might have to think about doing that. I assume I'd just need one raspberry pi connected for both readings. Issue would be getting the power to the pi as I'd need the solar PV in the actually electric box... hmmm.. maybe another project.

Out of curiosity how many Pis do you have in your house?
7.

Only one (Pi3) handles home automation at the moment. The others are on Sony EVI & MS Kinect cameras to convert to IP Cameras, on telescopes for full remote control of pan/tilt/filter/focus/ccd camera, and one autopilots 5x Scalextric digital cars when needed.

Previously I had 4 Pi B+ running Domoticz in master/slave config... but migrated all that down to a single Pi3.
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!
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 »

Wow, the Scalextric cars sounds interesting! I have just moved over to a Pi 3, everything seems so much more snappier now. Especially with Homebridge. However I migrated to the MQTT at the same time so its seemed like a massive jump in performance. Been a lot more stable, touching wood I've not had one crash yet..
User avatar
Marci
Posts: 532
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 »

Scaley digital is just PWM control so easy via Pi with a H-bridge... Processing3 + a webcam tracks colors so can ID which car is where and trigger lane-changers at random. Worked out cheaper than the legit AdvancedPowerBase, and can dbl up as a Hornby-dig autopilot too.
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 »

all working!!
nice one, as usual 8-)
IMG_6987.jpg
IMG_6987.jpg (109.43 KiB) Viewed 1986 times
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
User avatar
Marci
Posts: 532
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 »

Righty - so YouLess is specifically sorted - cheers djc! The issue therefore lies with combination of subtypes (kWh / Energy / Meter etc) for those using less-specific hardware!
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!
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 »

Any log I can send to help you? I does read it right then for some reason the value changes from today to total.
User avatar
Marci
Posts: 532
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 JSON + the MQTT packet.
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!
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 »

Best way to get the MQTT packet?
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 »

Marci wrote:Just JSON

Code: Select all

{
   "ActTime" : 1472985055,
   "ServerTime" : "2016-09-04 11:30:55",
   "Sunrise" : "06:20",
   "Sunset" : "19:40",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 100,
         "CounterToday" : "4.110 kWh",
         "CustomImage" : 0,
         "Data" : "9724.490 kWh",
         "Description" : "",
         "Favorite" : 1,
         "HardwareID" : 1,
         "HardwareName" : "RFXCom",
         "HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
         "HardwareTypeVal" : 1,
         "HaveTimeout" : false,
         "ID" : "000089A2",
         "LastUpdate" : "2016-09-04 11:30:13",
         "Name" : "Solar PV Generation",
         "Notifications" : "false",
         "PlanID" : "3",
         "PlanIDs" : [ 3, 4 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : 6,
         "SubType" : "kWh",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "General",
         "TypeImg" : "current",
         "Unit" : 1,
         "Usage" : "1141.6 Watt",
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "134"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Last edited by simon_rb on Sunday 04 September 2016 12:32, edited 1 time in total.
User avatar
Marci
Posts: 532
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 »

Er... that's for a dishwasher switch...
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!
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 »

Twat! 134 not 135.. Just updated it - Sorry :oops:
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 »

Lol this thread makes me laugh


Sent from my iPhone using Tapatalk
Domoticz 3.5641 on RPI (Raspbian GNU/Linux 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest