Thanks for the report ; it worked before, I fixed it in test version.
Hello again,
some additional detailsā¦
The id: 0 will only allow one device for this driver. Have you used a unique ID now?
I will get my Fronius Gen24 soon so I can test a bit in future
Correct Ronny, the { id: 0 } was just a little proof of concept. To verify that this was the issue.
@Ethaniael this would be a solution with a uuidv4
...
function uuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
);
}
function doSubmit(){
let hostname = document.getElementById('hostname').value;
let name = document.getElementById('name').value;
if (!hostname || !name) {
Homey.alert('Please fill in all fields');
}
else {
Homey.emit('validate', { "host": hostname })
.then(result => {
if (result == 'ok') {
let deviceDefinition = {
name,
data: { id: uuidv4() },
settings: { ip: hostname }
};
...
Or just use the code from Athom they use to generate device IDs. Then you donāt need additional modules. Just tu keep it simple
getUIID() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
}
Indeed, unfortunate this is.
Thank you anyways!
thanks itās better than the id:0 quick fix, Iāll use that
If you dig in the documentation, youāll find that itās stated that some fields are not supported on GEN24. For example, for the powerflow request I use :
At the bottom in the example you have this warning :
I you find another way to get the values with the web requests Iāll be happy to have a look.
Hi, Iām new in Fronius family since today
I added the Gen24 and the BYD battery. But how can I add the Fronius smartmeter, thatās connected to the inverter? I get a not found error message while pairing using the inverter IP.
Can I somehow get the consumption/production values from the inverter like the HomeAssistant integration provides?
Or are these values available for the smartmeter device?
While adding a smartmeter using the inverter IP I get this error:
I would be happy about hints how to add this device. Thanks.
It should work with the IP address. Could you please send the result of http://192.168.1.50/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System
Just a small updateā¦using the new test version itās possible to add the Fronius smartmeter via Gen24 IP.
Many thanks @Ethaniael
Hi @Ethaniael
would it be possible to add DC current/voltage/power for more than one input (at least 2)?
The Gen24/Tauro is supporting these values and I have two inputs (north/south side).
The current capabilities are only showing the data for input line 1. So Iām missing the secont input line.
If I should better add it and make a PR, just ket me know. But perhaps you better want to keep your code in your style
Hi,
This is new (I didnāt know about it), Iāll have a look to add it
Thomas
Yes, itās new for Gen24 devices. These values are optionally and not delivered by other devices. So please ask if I can test something (url etc.).
Many thanks.
Hi @RonnyW. I know you requested that a while ago but if youāre still interested I did a first version with support for udc_x and idc_x (for now it adds a new parameter to choose the number of mppt tracker to display).
Itās not yet published but you can try it from github
Hi, Iām using the wattpilot as well. Are there any plans to extend the app in this direction?
Thx, Oli
Wattpilot is a standalone device and not dependent on the inverter API.
That means, a new app is needed.
The e-Go wallbox is technically nearly the same, but they are using a different firmware, so the differences between the APIs donāt allow to add the Wattpilot to this e-Go app.
In the meantime, the HomeAssistant integration can be used (if you have already HA installed).
Hi Ronny, thx for reply. I asked the go-e team as well. I didnāt know HA, so Iāll check this as well. Thx
Is it somehow possible to change battery settings (min/max charging/discharging settings)?
It seems thatās the only way to control an AC charging.
Currently I donāt use it (fixed prices). But it would be nice to control battery charging at night if next day has not enough solar production.
The API description has only GET requests documented. The battery control is only possible via local inverter website.
So I assume itās not possible with automation?
I found additional informationsā¦
Itās possible to control inverter/battery functions via Modbus only.
Usecase would be to charge in winter at low price periods.
But I think this would need a new app. Parallel use of http API and Modbus wouldnāt be so good. Or it this something you want to add to this app @Ethaniael ?
https://www.libe.net/fronius-modbus
https://www.libe.net/byd-modbus