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

use power demand value from mqtt with json format #164

Closed
card917 opened this issue Jan 25, 2024 · 2 comments
Closed

use power demand value from mqtt with json format #164

card917 opened this issue Jan 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@card917
Copy link

card917 commented Jan 25, 2024

Hi,

First I would like to thank you for your works, it work pretty well. my setup has 2 inverter and going to add another one but i found out that getting the power demand from ha via api is not reliable for me. Maybe my ha server is not powerful enough to push the value freguently therefor i would like to try the mqtt subscribe instead.

my mqtt topic is home/gridsensor/2/state which update every 10 second and response in json

{
    "voltage": 232.4,
    "current": 1.74,
    "consumption": 0.08
}

but i could not extract the value of consumption to use with powermeter. i tried with filter and lambda. but I'm not so good at coding so it doesn't success. could you help guide me?

@syssi
Copy link
Owner

syssi commented Jun 14, 2024

Do you still looking for some lines of code to parse your json payload?

@syssi syssi added the enhancement New feature or request label Aug 12, 2024
@card917
Copy link
Author

card917 commented Oct 23, 2024

Thank you Sebastian, finally I upgrade the home assistant server and everything works perfectly with API method

@card917 card917 closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants