bwp91 / homebridge-govee

Homebridge plugin to integrate Govee devices into HomeKit.
MIT License
462 stars 48 forks source link

Support For Smart Plug H5086 #842

Open fwunder opened 1 month ago

fwunder commented 1 month ago

Support For Smart Plug H5086 please. Thank you!

From Log:

[7/22/2024, 2:28:39 PM] [Govee1] [GoveePlug1] is not currently supported, do create a Github issue with the following info: {"device":"3C:C3:60:74:F4:BC:0F:3C","deviceName":"GoveePlug1","model":"H5086","httpInfo":{"groupId":0,"device":"3C:C3:60:74:F4:BC:0F:3C","sku":"H5086","spec":"","versionHard":"1.02.00","versionSoft":"1.00.24","deviceName":"GoveePlug1","deviceExt":{"deviceSettings":"{\"wifiName\":\"Bob\",\"address\":\"60:74:F4:BC:0F:3D\",\"bleName\":\"GVH50860F3D\",\"topic\":\"GD/6cfe4bec6692fc1e3ec93cd44d0ffc4e\",\"wifiMac\":\"60:74:F4:BC:0F:3C\",\"pactType\":1,\"pactCode\":1,\"wifiSoftVersion\":\"1.00.24\",\"wifiHardVersion\":\"1.02.00\",\"ic\":0,\"secretCode\":\"Z2zP21sToJM=\",\"boilWaterCompletedNotiOnOff\":1,\"completionNotiOnOff\":1,\"autoShutDownOnOff\":1,\"sku\":\"H5086\",\"device\":\"3C:C3:60:74:F4:BC:0F:3C\",\"deviceName\":\"GoveePlug1\",\"versionHard\":\"1.02.00\",\"versionSoft\":\"1.00.24\",\"playState\":false}","lastDeviceData":"{\"online\":false}","extResources":"{\"skuUrl\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/30618491c95bab32822318b89c92ae62-add_list_type_device_5086.png\",\"headOnImg\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/a83b02799483139a7b4f61d9984886f7-new_h5086_pics_device_1.png\",\"headOnImgNew\":\"\",\"headOffImg\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/94daf8d493a64a7ff592de961c123205-new_h5086_pics_device_1_close.png\",\"headOffImgNew\":\"\",\"ext\":\"\",\"ic\":0}"},"pactType":1,"pactCode":1,"share":0,"deviceId":22584584,"gidConfirmed":false,"goodsType":195,"attributesId":0,"supportScene":0}}

bwp91 commented 1 month ago

Hi @fwunder please update to the beta version of the plugin to see if this device logs scene codes to the homebridge log.

Note that even though the switch will be visible in homekit, it won’t work controlling the actual device (nor will it show the correct status)

fwunder commented 1 month ago

Thanks Ben,

I have attached log after restart with bet version.

On Jul 22, 2024, at 4:54 PM, Ben @.***> wrote:

Hi @fwunder https://github.com/fwunder please update to the beta version of the plugin to see if this device logs scene codes to the homebridge log.

Note that even though the switch will be visible in homekit, it won’t work controlling the actual device (nor will it show the correct status)

— Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-govee/issues/842#issuecomment-2243797387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFU75AWURC3SM345YWFXTLZNVWP5AVCNFSM6AAAAABLI3VRT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTG44TOMZYG4. You are receiving this because you were mentioned.

[7/22/2024, 6:06:32 PM] [Govee1] Initializing Govee platform... [7/22/2024, 6:06:32 PM] [Govee1] Initialising plugin v10.9.3-beta.6 | System darwin | Node v20.10.0 | HB v1.8.4 | HAPNodeJS v0.12.2... [7/22/2024, 6:06:32 PM] Loading 3 accessories... [7/22/2024, 6:06:32 PM] [Govee1] Plugin initialised. Setting up accessories.... [7/22/2024, 6:06:32 PM] [Govee1] ** [7/22/2024, 6:06:32 PM] [Govee1] You are using a beta version of the plugin - you will experience more logging than normal. [7/22/2024, 6:06:32 PM] [Govee1] ** Setup Payload: X-HM://0024GHLCBAF84 Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 597-21-291 │     
└────────────┘     

[7/22/2024, 6:06:32 PM] Homebridge v1.8.4 (HAP v0.12.2) (Homebridge 8B72) is running on port 51925. [7/22/2024, 6:06:32 PM]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[7/22/2024, 6:06:32 PM] [Govee1] [LAN] server started listening on 0.0.0.0:4002. [7/22/2024, 6:06:32 PM] [Govee1] [LAN] scanning for devices over LAN... [7/22/2024, 6:06:34 PM] [Govee1] [LAN] client enabled and found 0 device(s). [7/22/2024, 6:06:34 PM] [Govee1] [HTTP] retrieved access token from cache. [7/22/2024, 6:06:34 PM] [Govee1] [HTTP] client enabled and found 5 device(s). [7/22/2024, 6:06:34 PM] [Govee1] [AWS] client enabled. [7/22/2024, 6:06:34 PM] [Govee1] [BLE] disabling client as not supported on mac devices. [7/22/2024, 6:06:34 PM] [Govee1] [GoveePlug2] initialising with options {"showAs":"outlet"}. [7/22/2024, 6:06:34 PM] [Govee1] [GoveePlug2] initialised with id [07:0C:60:74:F4:BA:85:E4] [H5086]. [7/22/2024, 6:06:34 PM] [Govee1] [GoveePlug1] initialising with options {"showAs":"outlet"}. [7/22/2024, 6:06:34 PM] [Govee1] [GoveePlug1] initialised with id [3C:C3:60:74:F4:BC:0F:3C] [H5086]. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] initialising with options {"lowBattThreshold":20}. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] initialised with id [47:48:18:1F:69:90:E8:99] [H5179]. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] initialising with options {"lowBattThreshold":20}. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] initialised with id [9B:CC:1B:7D:D9:62:14:C1] [H5179]. [7/22/2024, 6:06:35 PM] [Govee1] [Govee] initialising with options {"lowBattThreshold":20}. [7/22/2024, 6:06:35 PM] [Govee1] [Govee] initialised with id [BF:68:E0:13:D5:80:A4:F9] [H5179]. [7/22/2024, 6:06:35 PM] [Govee1] [BLE] sync for thermo-hygrometer sensors disabled as required hardware/packages not available. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] current temperature [24.3°C / 75.7°F]. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] current humidity [50.9%]. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] current temperature [28.8°C / 83.8°F]. [7/22/2024, 6:06:35 PM] [Govee1] [Inside] current humidity [63.7%]. [7/22/2024, 6:06:35 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2660,"humidity":7660,"online":true}. [7/22/2024, 6:06:35 PM] [Govee1] [Govee] current temperature [26.6°C / 79.9°F]. [7/22/2024, 6:06:35 PM] [Govee1] [Govee] current humidity [76.6%]. [7/22/2024, 6:06:35 PM] [Govee1] [AWS] connect event. [7/22/2024, 6:06:35 PM] [Govee1] [GoveePlug2] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1721685995532000","type":0}}. [7/22/2024, 6:06:35 PM] [Govee1] [GoveePlug1] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1721685995532000","type":0}}. [7/22/2024, 6:06:35 PM] [Govee1] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! [7/22/2024, 6:06:35 PM] [Govee1] [AWS] message event [{"proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1721685995532000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_45_11050_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkALz4AJngrPgLWATGAYQAAAOw=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}]. [7/22/2024, 6:06:35 PM] [Govee1] [GoveePlug2] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"v_1721685995532000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_45_11050_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkALz4AJngrPgLWATGAYQAAAOw=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}. [7/22/2024, 6:06:36 PM] [Govee1] [AWS] message event [{"proType":2,"sku":"H5086","device":"3C:C3:60:74:F4:BC:0F:3C","softVersion":"1.00.24","wifiSoftVersion":"1.00.24","cmd":"status","type":0,"transaction":"v_1721685995532000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_75_12390_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkANRsAQgkt6wGHALFpYwAAAC0=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA="]}}]. [7/22/2024, 6:06:36 PM] [Govee1] [GoveePlug1] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"3C:C3:60:74:F4:BC:0F:3C","softVersion":"1.00.24","wifiSoftVersion":"1.00.24","cmd":"status","type":0,"transaction":"v_1721685995532000","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_75_12390_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkANRsAQgkt6wGHALFpYwAAAC0=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA="]}}. [7/22/2024, 6:07:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:07:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:07:05 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:07:05 PM] [Govee1] [Govee] current temperature [26.5°C / 79.7°F]. [7/22/2024, 6:07:05 PM] [Govee1] [Govee] current humidity [78%]. [7/22/2024, 6:07:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:07:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:07:35 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:08:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:08:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:08:05 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:08:22 PM] [Govee1] [AWS] message event [{"proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"a_1721686102119","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"0_0_45_11140_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAL6kAJy0tXgBlAC0xYwAAAFY=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}]. [7/22/2024, 6:08:22 PM] [Govee1] [GoveePlug2] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"a_1721686102119","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"0_0_45_11140_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAL6kAJy0tXgBlAC0xYwAAAFY=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}. [7/22/2024, 6:08:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:08:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:08:35 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:09:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:09:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:09:05 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:09:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":5090,"online":true}. [7/22/2024, 6:09:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:09:35 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:10:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":4860,"online":true}. [7/22/2024, 6:10:05 PM] [Govee1] [Inside] current humidity [48.6%]. [7/22/2024, 6:10:05 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:10:05 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}. [7/22/2024, 6:10:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":50,"temperature":2430,"humidity":4860,"online":true}. [7/22/2024, 6:10:35 PM] [Govee1] [Inside] [HTTP] receiving update {"source":"HTTP","battery":29,"temperature":2880,"humidity":6370,"online":true}. [7/22/2024, 6:10:35 PM] [Govee1] [Govee] [HTTP] receiving update {"source":"HTTP","battery":100,"temperature":2650,"humidity":7800,"online":true}.

fwunder commented 1 month ago

Ben,

Just to follow up, the plug does show in Homekit AND IS controllable with correct status.

Thank you!

fred

On Jul 22, 2024, at 4:54 PM, Ben @.***> wrote:

Hi @fwunder https://github.com/fwunder please update to the beta version of the plugin to see if this device logs scene codes to the homebridge log.

Note that even though the switch will be visible in homekit, it won’t work controlling the actual device (nor will it show the correct status)

— Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-govee/issues/842#issuecomment-2243797387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFU75AWURC3SM345YWFXTLZNVWP5AVCNFSM6AAAAABLI3VRT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTG44TOMZYG4. You are receiving this because you were mentioned.

bwp91 commented 1 month ago

Does it update the state in homekit if you use the govee app to control the device?

fwunder commented 1 month ago

Yes!On Jul 23, 2024, at 3:24 AM, Ben @.***> wrote: Does it update the state in homekit if you use the govee app to control the device?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

fwunder commented 1 month ago

One more followup question.

May it be possible to capture power monitoring information - watts and voltage?

Thank you!

On Jul 23, 2024, at 6:03 AM, Fred Wunderlich @.***> wrote:

Yes!

On Jul 23, 2024, at 3:24 AM, Ben @.***> wrote:



Does it update the state in homekit if you use the govee app to control the device?

— Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-govee/issues/842#issuecomment-2244453069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFU75B7CNFWJJJ3JB3ODBTZNYAKNAVCNFSM6AAAAABLI3VRT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGQ2TGMBWHE. You are receiving this because you were mentioned.

bwp91 commented 1 month ago

if you are able to do the following then maybe:

  1. disable Bluetooth on your phone and force close the govee app
  2. open the govee app to the device page - doing this should post an update set of 'scene codes' in the homebridge log
  3. at the same time as this, take the current voltage and wattage that the govee app reports

post here the logs, as well as the readings from the govee app

steps 2 and 3 should be done at the same time as much as possible - the readings should be included somehow in the scene codes - and ideally the readings from the govee app will match what is in the codes.

fwunder commented 1 month ago

GoveePlug 2:

116.59 Watt 1.01 Amp 117.19 Volt

[7/23/2024, 1:43:18 PM] [Govee1] [GoveePlug2] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721756597881744","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_47_75350_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAwPMAImwtwwBlAC2FYwAAAI4=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}.

[7/23/2024, 1:43:19 PM] [Govee1] [AWS] message event [{"proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721756599418151","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_47_75350_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAwPQAImwtxwBlAC2LYwAAAIM=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}].

[7/23/2024, 1:43:19 PM] [Govee1] [GoveePlug2] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721756599418151","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_47_75350_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAwPQAImwtxwBlAC2LYwAAAIM=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}.

fwunder commented 1 month ago

This may be better timing.

GoveePlug2

115.56 Watt 1.01 Amp 116.21 Volt

[7/23/2024, 1:55:31 PM] [Govee1] [AWS] message event [{"proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721757331857966","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_43_76020_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAw9AAJgItZQBlAC0kYwAAAMM=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}].

[7/23/2024, 1:55:31 PM] [Govee1] [GoveePlug2] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"07:0C:60:74:F4:BA:85:E4","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721757331857966","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_43_76020_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAw9AAJgItZQBlAC0kYwAAAMM=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}.

bwp91 commented 1 month ago

perfect, i found the values, will report back

qhkAw9AAJgItZQBlAC0kYwAAAMM= - aa19 00c3 d000 2602 2d65 0065 00 2d24 63 0000 00c3
                                                   VOLT AMPS    WATT

115.56 Watt
1.01 Amp
116.21 Volt

11556 DEC = 2d24 HEX
101   DEC = 65   HEX
11621 DEC = 2d65 HEX
fwunder commented 1 month ago

Wow. Very cool. I have yet to see any smart plug that reports power monitoring to Homekit.

bwp91 commented 1 month ago

These readings cannot be seen in homebridge and also cannot be seen in the Home app. But they are still technically stored as HomeKit data. They are only viewable via a more enhanced app like the Eve app: https://www.evehome.com/en/eve-app It's free and is just an alternative to the home app. But it shows more info, like these power readings.

Anyway you can update to the newer beta I just posted, and hopefully they will be visible in the eve app.

fwunder commented 1 month ago

Thanks Ben. The Govee plugs are exposed to the Eve app, but power measurements don't show up. Unlike the Govee Temp/Humidity measurements which do show up and allow "Migrate Measurements", the Migrate Measurements page with the Govee plug is blank.

The only thing I see in the logs which may be pertinent is:

[7/23/2024, 3:04:59 PM] [Govee1] [GoveePlug2] could not be updated as Cannot read properties of undefined (reading 'addEntry') at default.internalStateUpdate (file:///usr/local/lib/node_modules/homebridge-govee/lib/device/outlet-single.js:99:33).

bwp91 commented 1 month ago

woops please try newer beta

fwunder commented 1 month ago

Close. Log shows:

[7/23/2024, 3:31:08 PM] [Govee1] [GoveePlug2] current wattage [117.44W]. [7/23/2024, 3:31:08 PM] [Govee1] [GoveePlug2] current voltage [117.44V].

Even app allows data migration, but I don't see values. Could be my unfamiliarity with Eve app.

fwunder commented 1 month ago

Ahhhh. I figured it out in Eve App by adding Voltage, Consumption and Current to visible "TYPES". Very cool.

bwp91 commented 1 month ago

i forgot one thing. please try the new beta, it should get the historical graph started in eve for the wattage

fwunder commented 1 month ago

OK, I guess It doesn't download historical data? I need to wait for data to accumulate?

fwunder commented 1 month ago

A potentially huge side benefit to your work...Shortcuts and automations based on Wattage, Voltage or Amperage. I just did a quick shortcut test and all three show up as custom states in shortcuts. Very cool.

fwunder commented 1 month ago

Some additional data which may help.

I have noticed that loads greater than ~500 watts seem to throw the Homekit data off considerably. Loads less than ~500 watts seem to be very consistently reported.

No Load:

[7/25/2024, 9:14:49 AM] [Govee1] [GoveePlug1] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"3C:C3:60:74:F4:BC:0F:3C","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"a_1721913289318","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"0_0_65_200_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAf3UAAg8suQTbAhejYAAAACg=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}.

Homekit:

1 W 0 A 118 V

Govee App:

1.43 W 0.03 A 117.89 V

==================================

Large Load:

[7/25/2024, 9:12:41 AM] [Govee1] [GoveePlug1] [AWS] receiving update {"source":"AWS","proType":2,"sku":"H5086","device":"3C:C3:60:74:F4:BC:0F:3C","softVersion":"1.00.25","wifiSoftVersion":"1.00.25","cmd":"status","type":0,"transaction":"y_1721913160996595","pactType":1,"pactCode":1,"state":{"onOff":1,"sta":{"stc":"19_0_64_90_1"},"result":1},"op":{"command":["qhcAAAAAAAAAAAAAAAAAAAAAAL0=","qhkAfvYAAGEsbwSlAfsEYAAAACY=","qrAAAAAAAAAAAAAAAAAAAAAAABo=","qrABAAAAAAAAAAAAAAAAAAAAABs=","rAABAAABEwAAAAAAAAAAAAAAAL8=","qh8AAAAAAAAAAAAAAAAAAAAAALU=","qhYBAAAXOwEAAAAAAAAAAAAAAJA=","qhoAAAAAAAAAAAAAAAAAAAAAALA=","qicAAAAAAAAAAAAAAAAAAAAAAI0="]}}.

Homekit:

643 W 11.9 A 114 V

Govee App:

1388.98 W 12.60 A 113.92 V

bwp91 commented 1 month ago

oops please try 10.9.3-beta.14

fwunder commented 1 month ago

That seems to have fixed it! I still do not see historical graphs in EVE like I do with H5179.

Attached menu shortcut showing energy.

govee

bwp91 commented 1 month ago

does Eve not show a graph at all for this model?

fwunder commented 1 month ago

No it does not. See photos below.

H5086

H5086

H5179

H5179

fwunder commented 1 month ago

I have attached longer log for additional info. Log includes H5179 (3) and H5086 (2)

homebridge-govee.log-3.txt