homebridge-aqara icon indicating copy to clipboard operation
homebridge-aqara copied to clipboard

is it possible to get plug's power status such as voltage?

Open freeznet opened this issue 8 years ago • 4 comments

Hi there, thanks for this amazing plugin, just wanna know how can we get the plug device's voltage reading?

i tried print PlugSwitchParser.prototype.parse data, but the voltage is not contained.

freeznet avatar Dec 08 '16 08:12 freeznet

At least it is possible as you can see in the API description https://github.com/louisZL/lumi-gateway-local-api/blob/master/plug.md

As far as I've seen in the source, currently all the data is gotten via the report, but only the heartbeat contains the voltage and it's not implemented yet.

SublimePotato avatar Dec 08 '16 10:12 SublimePotato

It’s possible, should be easy but does HomeKit support this property?

On 8 Dec 2016, 16:30 +0800, Rui Fu [email protected], wrote:

Hi there, thanks for this amazing plugin, just wanna know how can we get the plug device's voltage reading?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/19, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YdK-Dl2xo2Nkm0C6Kq4bt1oQL8xmks5rF8ANgaJpZM4LHjny.

snOOrz avatar Dec 08 '16 11:12 snOOrz

@SublimePotato i tried to console.log the heartbeat data, but seems it only contains "on/off" data, but no power consumption data.

the heartbeat data i got like this one:

{ cmd: 'heartbeat',
  model: 'plug',
  sid: '158d000125****',
  short_id: 199**,
  data: '{"status":"on"}' }

freeznet avatar Dec 27 '16 01:12 freeznet

Same, so far have not seem any reports beyond on/off status

corbinmunce avatar Dec 28 '16 05:12 corbinmunce