-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add instructions for enabling JSON API on newer inverters, and provide ability to customise the HomeKit Model and Serial #21
Comments
Hi Shaun, nice seeing you again too. I'm travelling interstate this week but those suggestions makes a lot of sense. Will do when I get back. For the model and serial, I wonder if the API contains any of that actually. Will investigate. |
Safe travels! |
@Shaun-R It looks like I can automatically get the inverter model(s) from the {
"Body" : {
"Data" : {
"1" : {
"DT" : 115,
"UniqueID" : "123456",
...
}
}
},
...
} Then I can lookup the number in {
"Inverters": {
"42": {
"ProductName": "Symo Advanced 10.0-3-M",
"DeviceFamily": "0",
"NominalPower": "10000",
"PhaseCountAC": "1"
},
"43": {
"ProductName": "Symo Advanced 20.0-3-M",
"DeviceFamily": "28",
"NominalPower": "20000",
"PhaseCountAC": "3"
},
...
}
} I'm thinking I can use the inverter |
Nice investigative work! Joining multiple UniqueID’s in the format [UniqueID][space][ampersand][space][UniqueID] seems quite reasonable to me! |
@Shaun-R I started working on this but then I ran into a major problem, HomeKit/Homebridge seems to only initialize the accessory information (manufacturer, model, serial) only once when the accessory is loaded, and it can't be dynamically updated. See https://stackoverflow.com/questions/75571300/homebridge-update-accessoryinformation and homebridge/homebridge#1643 The only workaround I can think of is changing how the plugin platform initially creates the accessories, and introduce a delay there to wait for the API query to finish, then create the accessories with the metadata already loaded. I think that'll technically work, but the downside is that it will delay the "bridge startup" which isn't a big deal but is advised against. |
@Shaun-R I've published a new beta version |
Hey mate, thanks for your work and update on this. {
"inverterIp": "192.168.1.16",
"pollInterval": 10,
"pvMaxPower": 10000,
"battery": false,
"platform": "FroniusInverterLightsPlatform"
}, Unfortunately I am getting error messages in my Homebridge logs:
and later on:
I can I'm not sure where you got the information regarding However, I think Alternatively, Finally, an "easy way out" in my opinion is via |
@Shaun-R I've published a beta 2 with a hard-coded device list (removed (I found the |
Cool. I'll publish this. |
Searching the 'net for a Homebridge plugin for my Fronius PV inverter, fancy coming across a familiar name! I remember you wrote a certain iOS app to allow topping up a certain public transport smart card to solve a certain crappy mobile website issue, as I recall... :)
Anyway, your plugin works brilliantly mate! Thank you!
Newer Fronius inverters have a redesigned web interface. Before setting up your plugin, one must first login to the local web UI as Customer or Technician user, open the hamburger menu on the left, select Communication, select Solar API, then turn on Activate communication via Solar API, and finally select Save. Otherwise, the inverter does not make the JSON data available.
It might be worth adding this to the readme.md?
My feature request for this plugin would be to allow user customisation of the Serial Number and Model which appears in HomeKit (as seen in below screenshot)
It appears that fronius-accessory.ts currently configures the Manufacturer and Model values (line 95-97), though I don't see references to a serial number in your code. Would it be possible to expose these as user-configurable fields in the config.schema.json and pass them through to this?
Thanks for your work!
The text was updated successfully, but these errors were encountered: