SphtKr / homebridge-zway

Homebridge plugin for (better) HomeKit support of RaZBerry and Z-Way Server
ISC License
85 stars 37 forks source link

Aeotec Energy Monitor Support #73

Open jamoir opened 7 years ago

jamoir commented 7 years ago

Hi,

Is there any plan to add energy monitor support?

I've just bought this: Z-Wave Aeon Labs Clamp Power Meter Gen5 - One Clamp (100A)

And would love to see it in home kit

Thanks, Jamie

SphtKr commented 7 years ago

That may already work, but Apple doesn't actually have an officially supported energy meter characteristic. However, Elgato's Eve Energy device does this via HomeKit, and they have a custom characteristic. Homebridge-ZWay actually publishes data for this characteristic when it recognizes an amp-meter or volt-meter, but you have to view it in the Eve app (it doesn't show up in Apple's Home app). Download the Eve app if you haven't already and see if perhaps it shows up in there. If not, then send me your devices JSON.

jamoir commented 7 years ago

Hi

Thanks for getting back to me. I've had a look in the Eve app and can't see it there. How do I find the device JSON to send over?

Thanks, Jamie

On 3 Jan 2017, at 05:58, SphtKr notifications@github.com<mailto:notifications@github.com> wrote:

That may already work, but Apple doesn't actually have an officially supported energy meter characteristic. However, Elgato's Eve Energy device does this via HomeKit, and they have a custom characteristic. Homebridge-ZWay actually publishes data for this characteristic when it recognizes an amp-meter or volt-meter, but you have to view it in the Eve app (it doesn't show up in Apple's Home app). Download the Eve app if you haven't already and see if perhaps it shows up in there. If not, then send me your devices JSONhttps://github.com/SphtKr/homebridge-zway#getting-zautomationapiv1devices.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SphtKr/homebridge-zway/issues/73#issuecomment-270055732, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC05rVFelFcuJ_NiUrTNxcK4Gu6iOgOxks5rOeOOgaJpZM4LKxxj.

SphtKr commented 7 years ago

The README on the front page has a section with instructions on retrieving devices.json

jamoir commented 7 years ago

{"data":{"structureChanged":true,"updateTime":1483629777,"devices":[{"creationTime":1479326356,"creatorId":7,"deviceType":"battery","h":-592588978,"hasHistory":false,"id":"BatteryPolling_7","location":0,"metrics":{"probeTitle":"Battery","scaleTitle":"%","title":"Battery digest 7","level":10},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483611761},{"creationTime":1483513428,"creatorId":5,"deviceType":"text","h":-1261400328,"hasHistory":false,"id":"InfoWidget_5_Int","location":0,"metrics":{"title":"Dear Expert User","text":"

If you still want to use ExpertUI please go, after you are successfully logged in, to
Menu > Devices > Manage with ExpertUI
or call
http://MYRASP:8083/experthttp://myrasp:8083/expert
in your browser.

You could hide or remove this widget in menu
Apps > Active Tab.
","icon":"app/img/logo-z-wave-z-only.png"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483513428},{"creationTime":1478617059,"creatorId":1,"deviceType":"switchBinary","h":1078449915,"hasHistory":false,"id":"ZWayVDev_zway_2-0-37","location":0,"metrics":{"icon":"switch","title":"Fake TV","level":"off"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483513428},{"creationTime":1481546053,"creatorId":1,"deviceType":"doorlock","h":1107079253,"hasHistory":false,"id":"ZWayVDev_zway_3-0-98","location":0,"metrics":{"level":"close","icon":"door","title":"Yale Door Lock (3.0)"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483626376},{"creationTime":1483513428,"creatorId":1,"deviceType":"battery","h":-40289343,"hasHistory":false,"id":"ZWayVDev_zway_3-0-128","location":0,"metrics":{"probeTitle":"Battery","scaleTitle":"%","level":10,"icon":"battery","title":"Yale Battery (3.0)"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483611761},{"creationTime":1481552442,"creatorId":1,"deviceType":"sensorMultilevel","h":493957651,"hasHistory":false,"id":"ZWayVDev_zway_4-0-50-0","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"kWh","level":368.7109888,"icon":"meter","title":"Aeotec Electric Meter (4.0.50.0)"},"permanently_hidden":false,"probeType":"meterElectric_kilowatt_hour","tags":[],"visibility":true,"updateTime":1483629663},{"creationTime":1481552442,"creatorId":1,"deviceType":"sensorMultilevel","h":493957653,"hasHistory":false,"id":"ZWayVDev_zway_4-0-50-2","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"W","level":661.1790336,"icon":"meter","title":"Aeotec Electric Meter (4.0.50.2)"},"permanently_hidden":false,"probeType":"meterElectric_watt","tags":[],"visibility":true,"updateTime":1483629773},{"creationTime":1481552442,"creatorId":1,"deviceType":"sensorMultilevel","h":493957655,"hasHistory":false,"id":"ZWayVDev_zway_4-0-50-4","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"V","level":247.732992,"icon":"meter","title":"Aeotec Electric Meter (4.0.50.4)"},"permanently_hidden":false,"probeType":"meterElectric_voltage","tags":[],"visibility":true,"updateTime":1483629001},{"creationTime":1481552442,"creatorId":1,"deviceType":"sensorMultilevel","h":493957656,"hasHistory":false,"id":"ZWayVDev_zway_4-0-50-5","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"A","level":3.2550002,"icon":"meter","title":"Aeotec Electric Meter (4.0.50.5)"},"permanently_hidden":false,"probeType":"meterElectric_ampere","tags":[],"visibility":true,"updateTime":1483629012},{"creationTime":1481552442,"creatorId":1,"deviceType":"sensorMultilevel","h":493957658,"hasHistory":false,"id":"ZWayVDev_zway_4-0-50-7","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":null,"level":177.115008,"icon":"meter","title":"Aeotec Electric Meter (4.0.50.7)"},"permanently_hidden":false,"probeType":"meterElectric_ampere","tags":[],"visibility":true,"updateTime":1483513428},{"creationTime":1482423427,"creatorId":1,"deviceType":"switchBinary","h":1164337368,"hasHistory":false,"id":"ZWayVDev_zway_5-0-37","location":0,"metrics":{"icon":"switch","title":"dinning room","level":"off"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483513729},{"creationTime":1482423541,"creatorId":1,"deviceType":"sensorMultilevel","h":-2058199310,"hasHistory":false,"id":"ZWayVDev_zway_5-0-50-0","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"kWh","level":3.5,"icon":"meter","title":"Electric Meter (5.0.50.0)"},"permanently_hidden":false,"probeType":"meterElectric_kilowatt_hour","tags":[],"visibility":true,"updateTime":1483629602},{"creationTime":1482430354,"creatorId":1,"deviceType":"sensorMultilevel","h":-2058199308,"hasHistory":false,"id":"ZWayVDev_zway_5-0-50-2","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"W","level":70.6,"icon":"meter","title":"Electric Meter (5.0.50.2)"},"permanently_hidden":false,"probeType":"meterElectric_watt","tags":[],"visibility":true,"updateTime":1483629605},{"creationTime":1482430350,"creatorId":1,"deviceType":"switchBinary","h":1164367159,"hasHistory":false,"id":"ZWayVDev_zway_5-1-37","location":0,"metrics":{"icon":"switch","title":"Switch (5.1)","level":"on"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483626577},{"creationTime":1482430356,"creatorId":1,"deviceType":"sensorMultilevel","h":-2029570159,"hasHistory":false,"id":"ZWayVDev_zway_5-1-50-0","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"kWh","level":0.4,"icon":"meter","title":"Electric Meter (5.1.50.0)"},"permanently_hidden":false,"probeType":"meterElectric_kilowatt_hour","tags":[],"visibility":true,"updateTime":1483629605},{"creationTime":1482430356,"creatorId":1,"deviceType":"sensorMultilevel","h":-2029570157,"hasHistory":false,"id":"ZWayVDev_zway_5-1-50-2","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"W","level":70.4,"icon":"meter","title":"Electric Meter (5.1.50.2)"},"permanently_hidden":false,"probeType":"meterElectric_watt","tags":[],"visibility":true,"updateTime":1483629706},{"creationTime":1482430352,"creatorId":1,"deviceType":"switchBinary","h":1164396950,"hasHistory":false,"id":"ZWayVDev_zway_5-2-37","location":0,"metrics":{"icon":"switch","title":"Switch (5.2)","level":"off"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1483623577},{"creationTime":1482430358,"creatorId":1,"deviceType":"sensorMultilevel","h":-2000941008,"hasHistory":false,"id":"ZWayVDev_zway_5-2-50-0","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"kWh","level":3.1,"icon":"meter","title":"Electric Meter (5.2.50.0)"},"permanently_hidden":false,"probeType":"meterElectric_kilowatt_hour","tags":[],"visibility":true,"updateTime":1483629000},{"creationTime":1482430358,"creatorId":1,"deviceType":"sensorMultilevel","h":-2000941006,"hasHistory":false,"id":"ZWayVDev_zway_5-2-50-2","location":0,"metrics":{"probeTitle":"Electric","scaleTitle":"W","level":0,"icon":"meter","title":"Electric Meter (5.2.50.2)"},"permanently_hidden":false,"probeType":"meterElectric_watt","tags":[],"visibility":true,"updateTime":1483629707}]},"code":200,"message":"200 OK","error":null}

SphtKr commented 7 years ago

Ah, I think I know what's going on. So, I built support for energy meters that were built into plugs. So while the Characteristic support is there, it doesn't build a device out of your Aeotec meter because it doesn't find a primary device type that it can be. Also, neither Apple's HomeKit taxonomy nor Eve's really has a device that is only an electric meter. I can fix this--worst case--by implementing a dummy "outlet" that can't be controlled, and is just there to let the electric meters piggyback on it. It'll still only work in Eve (possibly Hesperus?) but at least it'll work.

jamoir commented 7 years ago

That would be awesome.

Hopefully one day soon home kit will support it. Although the eve app is looking much better now.

Thanks so much for this plugin, I use it all the time for my zwave devices.

On 5 Jan 2017, at 18:50, SphtKr notifications@github.com<mailto:notifications@github.com> wrote:

Ah, I think I know what's going on. So, I built support for energy meters that were built into plugs. So while the Characteristic support is there, it doesn't build a device out of your Aeotec meter because it doesn't find a primary device type that it can be. Also, neither Apple's HomeKit taxonomy nor Eve's really has a device that is only an electric meter. I can fix this--worst case--by implementing a dummy "outlet" that can't be controlled, and is just there to let the electric meters piggyback on it. It'll still only work in Eve (possibly Hesperus?) but at least it'll work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/SphtKr/homebridge-zway/issues/73#issuecomment-270724504, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC05rfXle0FH45HDUFvbUHeNksBafqMRks5rPTuHgaJpZM4LKxxj.

jamoir commented 6 years ago

Hi,

Did you get a chance to do this update?

Would really love to see my current power usage in home

Thanks, Jamie