Git Product home page Git Product logo

Comments (10)

NorthernMan54 avatar NorthernMan54 commented on May 24, 2024

Are you updating fakegato with your sensor values every update ?

ie

this.loggingService.addEntry({time: Math.round(new Date().valueOf() / 1000), temp: this.temperature, pressure: this.airPressure, humidity: this.humidity});

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

Are you updating fakegato with your sensor values every update ?

ie

this.loggingService.addEntry({time: Math.round(new Date().valueOf() / 1000), temp: this.temperature, pressure: this.airPressure, humidity: this.humidity});

Yes, I am:

this.loggingService.addEntry({time: Math.round(new Date().valueOf() / 1000), power: this.powerConsumption });

Nothing on the app UI, though:

Screenshot 2021-12-19 at 14 04 36 217

from fakegato-history.

NorthernMan54 avatar NorthernMan54 commented on May 24, 2024

Did you see this in the instructions in regards to serial numbers?

Your plugin should expose the corresponding custom Elgato services and characteristics in order for the history to be seen in Eve.app. For a weather example see https://github.com/simont77/homebridge-weather-station-eve, for an energy example see https://github.com/simont77/homebridge-myhome/blob/master/index.js (MHPowerMeter class). For other types see the Wiki. Avoid the use of "/" in characteristics of the Information Service (e.g. serial number, manufacturer, etc.), since this may cause data to not appear in the history. Note that if your Eve.app is controlling more than one accessory for each type, the serial number should be unique, otherwise Eve.app will merge the histories. Adding hostname is recommended as well, for running multiple copies of the same plugin on different machines (i.e. production and development), i.e.:

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

@NorthernMan54 , I believe so.

The only special characters I have on my SerialNumber properties are "-". Does this impact the ability to see data in any way?

My outlet code is at https://github.com/AllMightySauron/homebride-solaxcloud-api/blob/master/src/outletAccessory.ts,
and i'm using homebridge-lib as the starting point for all service and characteristics. Does it help to share debug info for the history logging service?

Thanks in advance

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

Here's the dump from my history logging service. Hope it helps figuring out what could be missing... :)

{
	"_events": {},
	"_eventsCount": 3,
	"iid": 16,
	"name": null,
	"characteristics": [
		{
			"_events": {},
			"_eventsCount": 2,
			"iid": 17,
			"value": "Solax DEV Inverter AC History",
			"status": null,
			"statusCode": 0,
			"subscriptions": 0,
			"displayName": "Name",
			"UUID": "00000023-0000-1000-8000-0026BB765291",
			"props": {
				"format": "string",
				"perms": [
					"pr"
				],
				"maxLen": 64
			}
		},
		{
			"_events": {},
			"_eventsCount": 2,
			"iid": 18,
			"value": null,
			"status": null,
			"statusCode": 0,
			"subscriptions": 0,
			"displayName": "S2R1",
			"UUID": "E863F116-079E-48FF-8F27-9C2605A29F52",
			"props": {
				"format": "data",
				"perms": [
					"pr",
					"ev",
					"hd"
				]
			}
		},
		{
			"_events": {},
			"_eventsCount": 3,
			"iid": 19,
			"value": "AA==",
			"status": null,
			"statusCode": 0,
			"subscriptions": 0,
			"displayName": "S2R2",
			"UUID": "E863F117-079E-48FF-8F27-9C2605A29F52",
			"props": {
				"format": "data",
				"perms": [
					"pr",
					"ev",
					"hd"
				]
			}
		},
		{
			"_events": {},
			"_eventsCount": 3,
			"iid": 20,
			"value": null,
			"status": null,
			"statusCode": 0,
			"subscriptions": 0,
			"displayName": "S2W1",
			"UUID": "E863F11C-079E-48FF-8F27-9C2605A29F52",
			"props": {
				"format": "data",
				"perms": [
					"pw",
					"hd"
				]
			}
		},
		{
			"_events": {},
			"_eventsCount": 3,
			"iid": 21,
			"value": null,
			"status": null,
			"statusCode": 0,
			"subscriptions": 0,
			"displayName": "S2W2",
			"UUID": "E863F121-079E-48FF-8F27-9C2605A29F52",
			"props": {
				"format": "data",
				"perms": [
					"pw",
					"hd"
				]
			}
		}
	],
	"optionalCharacteristics": [],
	"isHiddenService": false,
	"isPrimaryService": false,
	"linkedServices": [],
	"displayName": "Solax DEV Inverter AC History",
	"UUID": "E863F007-079E-48FF-8F27-9C2605A29F52",
	"accessoryName": "Solax DEV Inverter AC",
	"signatures": [],
	"uuid": {},
	"size": 4032,
	"minutes": 10,
	"storage": "fs",
	"path": "C:\\Users\\nb10328\\.homebridge",
	"disableTimer": false,
	"disableRepeatLastData": false,
	"loaded": true,
	"accessoryType116": "04 0102 0202 0702 0f03",
	"accessoryType117": "1f",
	"accessoryType": "energy",
	"firstEntry": 0,
	"lastEntry": 14,
	"history": [
		"noValue",
		{
			"time": 1640012854,
			"setRefTime": 1
		},
		{
			"power": 235,
			"time": 1640012854
		},
		{
			"power": 226.5,
			"time": 1640013454
		},
		{
			"power": 91.5,
			"time": 1640014054
		},
		{
			"power": 110.5,
			"time": 1640014654
		},
		{
			"power": 62.5,
			"time": 1640015254
		},
		{
			"power": 79,
			"time": 1640015854
		},
		{
			"power": 143,
			"time": 1640016454
		},
		{
			"power": 67.5,
			"time": 1640017054
		},
		{
			"power": 79,
			"time": 1640017654
		},
		{
			"power": 61,
			"time": 1640018254
		},
		{
			"power": 40,
			"time": 1640018854
		},
		{
			"power": 4,
			"time": 1640019455
		},
		{
			"power": 0,
			"time": 1640020201
		}
	],
	"memorySize": 4032,
	"usedMemory": 14,
	"currentEntry": 1,
	"transfer": false,
	"setTime": true,
	"restarted": true,
	"refTime": 661705654,
	"memoryAddress": 0,
	"dataStream": "",
	"saving": false,
	"initialTime": 1640012854
}

from fakegato-history.

NorthernMan54 avatar NorthernMan54 commented on May 24, 2024

I took a look at your code but nothing jumped out to me as to why this is occurring. Have you started homebridge with -D and it will log more interactions ? You should see requests for the eve specific characteristics when looking at the eve app and the accessory.

As a sample of another implementation of history, my homebridge-tasmota plugin does this for several device types including power meters.

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

When running homebridge with -D, I can see some logging when I look at the accessory in the Eve app. No data is shown, nevertheless 😞

Clock adjust Solax DEV Inverter AC: 9ccd7127
[21/12/2021, 08:53:47] [Solax DEV] Data request Solax DEV Inverter AC: 01140a00000000
[21/12/2021, 08:53:47] [Solax DEV] Address requested Solax DEV Inverter AC: a
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 11, Address: 11
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 12, Address: 12
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 13, Address: 13
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 14, Address: 14
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 15, Address: 15
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 16, Address: 16
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 17, Address: 17
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 18, Address: 18
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 19, Address: 19
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 20, Address: 20
[21/12/2021, 08:53:47] [Solax DEV] Data Solax DEV Inverter AC: ,150a000000 0100 0000 81b6d370270000 0000 00 0000,14 0b00000018150000-1f:0000 0000 6202 0000 0000,14 0c00000070170000-1f:0000 0000 9001 0000 0000,14 0d000000c9190000-1f:0000 0000 2800 0000 0000,14 0e000000b31c0000-1f:0000 0000 0000 0000 0000,14 0f000000db210000-1f:0000 0000 0000 0000 0000,14 1000000033240000-1f:0000 0000 0000 0000 0000,14 110000008b260000-1f:0000 0000 0000 0000 0000,14 12000000e3280000-1f:0000 0000 0000 0000 0000,14 13000000a92b0000-1f:0000 0000 0000 0000 0000,14 140000000f340000-1f:0000 0000 0000 0000 0000
[21/12/2021, 08:53:47] [Solax DEV] Solax DEV Inverter AC Entry: 21, Address: 21
[21/12/2021, 08:53:47] [Solax DEV] Data Solax DEV Inverter AC: ,14 1500000097f80000-1f:0000 0000 8a02 0000 0000
[21/12/2021, 08:54:01] [Solax DEV] Clock adjust Solax DEV Inverter AC: a9cd7127

from fakegato-history.

simont77 avatar simont77 commented on May 24, 2024

Hi, Eve.app is very finicky about the consistency of data. If during your testing you introduced an initial time in the future no history will appear. Check that time on your iDevice and on your homebridge machine is ok, then create a new accessory with different name and serial number and try again.

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

Thanks @simont77. Does Eve use both name and serial as unique id?

I also noted I have a forward slash "/" on my model name. Can this be the cause?

from fakegato-history.

AllMightySauron avatar AllMightySauron commented on May 24, 2024

Solved! It was the slash on the model name... Thanks for your help!

from fakegato-history.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.