homebridge-aqara
homebridge-aqara copied to clipboard
is it possible to get plug's power status such as voltage?
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.
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.
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.
@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"}' }
Same, so far have not seem any reports beyond on/off status