Skip to content
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

Start values for electricity meters #493

Closed
fracz opened this issue Oct 14, 2021 · 6 comments
Closed

Start values for electricity meters #493

fracz opened this issue Oct 14, 2021 · 6 comments

Comments

@fracz
Copy link
Member

fracz commented Oct 14, 2021

ustawianie wartości początkowych dla liczników energii
Tylko muszę gdzieś Ci wrzucać info jakie pomiary są wspierane przez dany licznik [w properties]
A wartości początkowe mają trafiać do któregoś paramsa? Czy to przy resetowaniu ma być parametr?
Do user_config

@fracz
Copy link
Member Author

fracz commented Oct 21, 2021

To ma działać tak samo jak dla licznika impulsów tylko tutaj jest więcej możliwości. Energia czynna pobrana, Energia czynna zwrócona, To samo dla biernej i czynnej bilansowanej

To jakie są dostępne zapiszę w properties

Na wykresy to będzie miało wpływ tak jak ma wpływ w przypadku licznika impulsów z tym, że jak wprowadzę detekcję resetowania licznika to przy zmniejszaniu wartości będzie się to zachowywac w specyficzny sposób

po stronie cloud-a to też powinno być wdrożone

Tak jak w HA https://developers.home-assistant.io/docs/core/entity/sensor/#state-class-total

Będziemy tak robić po stronie apki i po stronie wykresów w cloud powinno być analogicznie

@przemyslawzygmunt
Copy link
Member

properties:

{
"countersAvailable":[
"forwardActiveEnergy",
"reverseActiveEnergy",
"forwardReactiveEnergy",
"reverseReactiveEnergy",
"forwardActiveEnergyBalanced",
"reverseActiveEnergyBalanced"
]
}

@przemyslawzygmunt
Copy link
Member

user_config:

{
"electricityMeterInitialValues":{
"forwardActiveEnergy":0,
"reverseActiveEnergy":0,
"forwardReactiveEnergy":0,
"reverseReactiveEnergy":0,
"forwardActiveEnergyBalanced":1.456,
"reverseActiveEnergyBalanced":123.678
}
}

@fracz
Copy link
Member Author

fracz commented Nov 8, 2021

@przemyslawzygmunt czy wartość countersAvailable będzie dostępna od razu dla wszystkich kanałów z typem EM? Chciałbym użyć tej wartości do ukrycia niewspieranych wykresów na stronie szczegółów liczników energii #450, tylko że jak ta wartość będzie pusta to wtedy wykresy nie pojawią się w ogóle.

@fracz
Copy link
Member Author

fracz commented Nov 8, 2021

image
image

fracz added a commit that referenced this issue Nov 8, 2021
@fracz
Copy link
Member Author

fracz commented Nov 8, 2021

Each value from electricityMeterInitialValues fits the 0-100M range, with additional precision up to 3 decimal points.

If you want to store in in integer, it can have a value of 100B, so long is required.

@fracz fracz closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants