Open stevethibault opened 11 months ago
@stevethibault may I assume you have batteries? One reason I don't have this implemented is that I wouldn't really be able to test. I'll take this on, if you're willing to contribute a little testing before an 0.0.9 release. Deal?
I do have batteries. As time allows yes I’d love to help out. On Jan 15, 2024, at 2:50 PM, Greg Gibeling @.***> wrote: @stevethibault may I assume you have batteries? One reason I don't have this implemented is that I wouldn't really be able to test. I'll take this on, if you're willing to contribute a little testing before an 0.0.9 release. Deal?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Cool. Then I'll take this on over the next week or two.
Well that timeline didn't work. This is still scheduled for 0.0.9 though, as it affects control.
I understand. Can I help at all beyond testing?On Feb 8, 2024, at 9:23 PM, Greg Gibeling @.***> wrote: Well that timeline didn't work. This is still scheduled for 0.0.9 though, as it affects control.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Not unless you wanna open a PR. This one is pretty easy.
I can give it a go. I know a bit of python, not my primary language though. So lets see what I can pull together. When is 0.0.9 scheduled?
I’m curious and interested in this capability as well. My install will include Solark inverters and Pyte batteries with generator and grid tie in. I’m looking for simple on/off grid detection to assist with load shedding via HA. How is this monitored today as I’m about a week or so from Installation and want to make sure they include appropriate wiring as I can’t find any docs on this capability today. I understand it may not be formally supported, but this could be a tremendous value to my install with dual solark inverters and dual span panels.
@deliverer33 the underlying data may be there, just not exposed through sensors. I'm happy to make the necessary adjustments on what is there but it would also be useful to fully understand what the data does provide by running some tests in various configurations and watch what the panel is giving us. The currently available data is:
"dsmGridState": "DSM_GRID_UP",
"dsmState": "DSM_ON_GRID",
"currentRunConfig": "PANEL_ON_GRID",
I don't have a battery or generator so I can't test these directly to find out what the other values would be (the panel would go dark if I shut my grid down). If you know how to run REST calls against the panel API you'll see these and can monitor the various changes. Otherwise I can just expose them as sensors and you can test that integration and let us know what you see.
@deliverer33 the underlying data may be there, just not exposed through sensors. I'm happy to make the necessary adjustments on what is there but it would also be useful to fully understand what the data does provide by running some tests in various configurations and watch what the panel is giving us. The currently available data is:
"dsmGridState": "DSM_GRID_UP", "dsmState": "DSM_ON_GRID", "currentRunConfig": "PANEL_ON_GRID",
I don't have a battery or generator so I can't test these directly to find out what the other values would be (the panel would go dark if I shut my grid down). If you know how to run REST calls against the panel API you'll see these and can monitor the various changes. Otherwise I can just expose them as sensors and you can test that integration and let us know what you see.
Let me get there first. I'm probably a few weeks from being able to run the API testing.
Triggering automations based on the power source of the panel would be very useful. Could property be added to report the following three panel JSON values to homeassistant that can be used for home automatons?
The following JSON properties can be found in the top level of the result of the /api/v1/panel query
"dsmGridState": "DSM_GRID_UP", () "dsmState": "DSM_ON_GRID", (can also be "DSM_ISLANDED") "currentRunConfig": "PANEL_ON_GRID", (can also be "PANEL_ISLANDED")