Page 33 of 86

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 10:46
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!

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 10:47
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

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:00
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:03
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

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:08
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:11
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?

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:16
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:25
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:31
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:36
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..

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:45
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:49
by deejc
all working!!
nice one, as usual 8-)
IMG_6987.jpg
IMG_6987.jpg (109.43 KiB) Viewed 1988 times

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 11:53
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!

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:08
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.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:11
by Marci
Just JSON + the MQTT packet.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:15
by simon_rb
Best way to get the MQTT packet?

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:17
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"
}

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:29
by Marci
Er... that's for a dishwasher switch...

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:31
by simon_rb
Twat! 134 not 135.. Just updated it - Sorry :oops:

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 September 2016 12:46
by deejc
Lol this thread makes me laugh


Sent from my iPhone using Tapatalk