fakegato-history: New Energy Monitor - Missing data 'no data available'

I have created a new plugin, and can’t find the correct combination to fix the ‘no data available’ graph under the on/off button. I have created this as a ‘Service.Switch’ and am populating the historical data with time, power and status.

fakegatoService.addEntry({
          time: Date.now(),
          power: this.accessories.find(accessory => accessory.UUID === element.uuid)?.getService(this.Service.Switch)?.getCharacteristic(this.CustomCharacteristic.CurrentConsumption).value ?? 0,
          status: (this.accessories.find(accessory => accessory.UUID === element.uuid)?.getService(this.Service.Switch)?.getCharacteristic(this.Characteristic.On).value ?? false ? 1 : 0 )

I have tried using an Outlet and no luck either. Does anyone have a working example I can look at ? Or is this just not feasible.

The top portion of this image.

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 45 (16 by maintainers)

Most upvoted comments

I was really hoping it was a setup issue on my side, but it looks like I may need to obtain one and do some reverse engineering.

Tks @simont77 @ebaauw