-
Notifications
You must be signed in to change notification settings - Fork 57
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
Unable to get energy consumption Tried both Enphase as well as home assistant #604
Comments
Are you using the enphase module in TWCManager? I think enphase added some sort of extra authentication process for local access. Home assistant was updated to use this but I don't think that the TWCManager enphase module can. I get my enphase solar data via the home assistant module. |
Yeah. I'm also not getting any data from home assistant. The data is in
homeassistant, I can see the meter readings on the dashboard
…On Sat, 18 Jan 2025, 01:32 samiam, ***@***.***> wrote:
Are you using the enphase module in TWCManager? I think enphase added some
sort of extra authentication process for local access. Home assistant was
updated to use this but I don't think that the TWCManager enphase module
can. I get my enphase solar data via the home assistant module.
—
Reply to this email directly, view it on GitHub
<#604 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCWCAVCRPG2P6CKRTSSG4XD2LGOLTAVCNFSM6AAAAABVM4LTN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGQYTIOJZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is this what you're using to get the solar data from home assistant? https://github.com/ngardiner/TWCManager/blob/main/docs/modules/EMS_HASS.md |
Yes. Filled everything in as needed. It's using https so it's set to true.
But I'm also not getting any errors that the data is not being received.
Something I'm really expecting if no data is coming in
…On Sat, 18 Jan 2025, 09:11 samiam, ***@***.***> wrote:
Is this what you're using to get the solar data from home assistant?
https://github.com/ngardiner/TWCManager/blob/main/docs/modules/EMS_HASS.md
—
Reply to this email directly, view it on GitHub
<#604 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCWCAVDD2CP4NKYKYIOQNQL2LIECVAVCNFSM6AAAAABVM4LTN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGYYDIOJWGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It's getting weirder. I thought i would just start publishing the sensor results from homeassistant through mqtt. So i configured both the control and sensor MQTT settings. I start TWCmanager, i can litterally see in the log Why does it seem that no data seems to flow (in any direction) |
The values published by HASS via MQTT are not being picked up by the TWCManager MQTT EMS module because of a bug which I fixed in PR #605 |
A late reply. I had an issue that Home assistant sents out the power data in kW while TWC manager expects the standard watss. So TWC might see hardly any power. |
Seems like the MQTT EMS for Consumption and Generation is still not working. Do not see any power numbers on the dashboard. Still only works through home assistant. The logs also don't give me very valueable info as it doesn't seem to go wrong there either. -twcmanager-1 | 12:31:13 ⚡ MQTT 18 MQTT EMS Consumption Value updated |
This could be the problem. Is there a way to apply a conversion factor? my p1 meter directly publishes to mqtt and has no option to send in watts. (and also has no option to publish the json). I could probably pick the numbers up in homeassistant and republish... but i rather not have any unnecessary steps in the flow. BTW, there should be an option to identify if the input is solar generation or solar surplus. By definition, everything returned to the grid (measured by p1 meter) should be seen as solar surplus (shouldn't it?) |
I don't have experience with mqtt. I use DSMR smart meter to read the values from the P1 port. And in the config file from HA I added a section sensor with 2 templates where the value is multiplied by 1000 to get Wats. The new value names are then put in the TWC manager config file. I don't know why but it looks like TWC manager wants to see if the solar panels producing energie even if you have a surplus from your P1 meter. |
When you have succeeded to configure HASS to send the P1-meter data to TWCManager, there is no need to also send data from the solar production to TWCManager. Simply set this in your TWCManager
This will make TWCManager try to keep the grid delivery at 0W. |
@RichieB2B This is a new line in the config file. As I don't see it in the current config file. |
I will do that. However I do want to have a conversion factor for mqtt
sources. Getting my data from Hass is less then ideal.
It's p1-->mqtt-->hass--> twcmanager
I rather just get the data directly from mqtt
…On Sat, 8 Feb 2025, 12:50 Richie B2B, ***@***.***> wrote:
When you have succeeded to configure HASS to send the P1-meter data to
TWCManager, there is no need to also send data from the solar production to
TWCManager. Simply set this in your config.json:
"treatGenerationAsGridDelivery": true,
This will make TWCManager try to keep the grid delivery at 0W.
—
Reply to this email directly, view it on GitHub
<#604 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCWCAVBSAKQRSRDOZP2UDBL2OXVPLAVCNFSM6AAAAABVM4LTN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBVGE4TIMZTGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
These lines mean the MQTT EMS module is working. It receives messages and updates the Comsumption and Generation values. You should see them in the TWCManager dashboard now. I agree the logging should contain the values to be more useful, hopefully #611 will fix that. |
I think it it may be a conversion issue. Because I don't see anything
beyond 2 watt of usage when actually 2.6 kw is being used
…On Sat, 8 Feb 2025, 16:33 Richie B2B, ***@***.***> wrote:
-twcmanager-1 | 12:31:13 ⚡ MQTT 18 MQTT EMS Consumption Value updated
-twcmanager-1 | 12:31:13 ⚡ MQTT 18 MQTT EMS Generation Value updated
These lines mean the MQTT EMS module is working. It receives messages and
updates the Comsumption and Generation values. You should see them in the
TWCManager dashboard now.
I agree the logging should contain the values to be more useful, hopefully
#611 <#611> will fix that.
—
Reply to this email directly, view it on GitHub
<#604 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCWCAVCZMZP4DE56BCSC2XL2OYPV7AVCNFSM6AAAAABVM4LTN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBVG44DQOBYGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I'm starting to pull my hair out. I have configured both enphase as well as home assistant in the config.json. While loading i'm not getting any errors (loglevel 13) but the consumption is 0. Even though I can clearly see consumption in both enlighten as well as home assistant.
I have not connected twcmanager up to a twc yet. but I don't think that would be the problem?
can anyone guide me a bit in the right direction?
The text was updated successfully, but these errors were encountered: