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

Push data to the connector (by @budbundi) #2

Open
nielstron opened this issue Dec 1, 2021 · 0 comments
Open

Push data to the connector (by @budbundi) #2

nielstron opened this issue Dec 1, 2021 · 0 comments

Comments

@nielstron
Copy link
Owner

@BudBundi

Hello,
I'm not sure if this is the right place or the home assistant repo.
But at this moment I can't use the official HA Fronius component since the poll interval is too long for my purposes and the data of the IOs are missing.
I know the IOs are not present in the pull API the user must set a push service for "Datamanager IO Sates".
Maybe it is possible to ask the user if he wants to push or pull the data in a config flow and if he chose to push, the component shows a link of the webhook to send the data to.

@nielstron

Hello @BudBundi,
I am not quite sure which tool you are talking about. This Library is primarily aimed at obtaining the data directly supplied by Fronius devices via the official Fronius JSON API V1. Is there another way to access this data? Is there a way to control switches in the fronius device? Does this require certain devices?

@BudBundi

I think no special device is necessary.

You can use all JSON API Data and some more, for me the "Datamanager IO Sates" part is essential.

Screenshot 2021-02-19 203753
see also official documentation
Operating Instruction Fronius Push Service.pdf

@nielstron

That looks really interesting! I do not currently have a Fronius device available to play around with this. Also, this requires a completely different setup than the current one (as the current package is aimed at user-initiated requests rather than regular incoming notifications). So thanks for the suggestion but I think this will (and can) not be implemented soonish (at least in this package).

Regarding the issue of too long poll intervals - you can manually configure the scan interval of the fronius component (down to any time interval you'd like). You will definitely get down to 10 seconds with this while too small intervals might slow down home assistant considerably.

@gbeine

The Push Service is in fact an interesting feature.
If the HTTP polling interval slows down HA too much, one could try the https://github.com/gbeine/fronius2mqtt script.
That polls the Fronius devices using pyfronius and publishes the results via MQTT.
Given an HA configured as a MQTT client, the interval of 10 seconds definitely will not slow down the HA.

@jmtatsch

The inverter can also be controlled via modbus tcp
Look at this how they set the charge target https://github.com/godfuture/SymoGen24Weather/blob/96bcde1c31a6ec144f4f17355a577100b75c90b3/SymoGen24Controller.py#L60

Note: reconstructed after temporary deletion of the project

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

1 participant