-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added some register #38
Conversation
Hi @Basti-RX, Thanks |
src/lib/states.ts
Outdated
@@ -126,6 +126,21 @@ export class InverterStates { | |||
state: {id: 'dailyEnergyYield', name: 'Daily energy yield', type: 'number', unit: 'kWh', role: 'value.energy'}, | |||
register: {reg: 32114, type: ModbusDatatype.uint32, length: 2, gain: 100} | |||
}, | |||
{ | |||
interval: UpdateIntervalID.LOW, | |||
state: {id: 'generatedenergytoday', name: 'Daily generated Energy', type: 'number', unit: 'kWh', role: 'value.energy.generated'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls change all role values accordingly to https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md#values-numbers-read-only.
see comment: ioBroker/ioBroker.repositories#3038 (comment)
Changed the roles. I hope it will fit now. |
src/lib/states.ts
Outdated
// MPPT | ||
{ | ||
interval: UpdateIntervalID.LOW, | ||
state: {id: 'mppt1power', name: 'MPPT 1 Power', type: 'number', unit: 'kWh', role: 'value.power.active', desc: 'Total input power of MPPT1'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Power should be kW ... or
kWh should be energy 😉
(see site roles list)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is changed. Dont know what value will be shown, so further changes will be possible
@@ -126,6 +126,21 @@ export class InverterStates { | |||
state: {id: 'dailyEnergyYield', name: 'Daily energy yield', type: 'number', unit: 'kWh', role: 'value.energy'}, | |||
register: {reg: 32114, type: ModbusDatatype.uint32, length: 2, gain: 100} | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reg 32114 is already there... see line 127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See it. Wonder why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der 32114 scheint bei mir, habe einen Akku, den Wert wieder zu spiegeln was ich heute benutzt habe und nicht der gesamte ertrag
{ | ||
interval: UpdateIntervalID.LOW, | ||
state: {id: 'generatedenergymonth', name: 'Monthly generated Energy', type: 'number', unit: 'kWh', role: 'value.energy.produced'}, | ||
register: {reg: 32116, type: ModbusDatatype.uint32, length: 2, gain: 100}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, i did not have these registers in my ModbusInterfaceDefinition document.
@Basti-RX Where do you got it from?
Can you send me the link to the doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it help you? Which Version you got?
Aufgrund Anfrage: Noch die Register |
Hi @Basti-RX, |
Kein Bedarf mehr hier bei dem Adapter weiter zu machen. Der Andere der Verfügbar ist, ist um einiges weiter und besser wie der hier. |
No description provided.