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

Solar circuit not showing up? #1

Open
teich opened this issue Aug 2, 2022 · 4 comments
Open

Solar circuit not showing up? #1

teich opened this issue Aug 2, 2022 · 4 comments

Comments

@teich
Copy link

teich commented Aug 2, 2022

Amazing integration, thank you!

My solar circuit isn't showing up. All other circuits are there and working great.
Tried reloading the integration and restarting home assistant as well as fully deleting and re-adding the integration.
The circuit is named 'Solar' in the span panel.

@teich
Copy link
Author

teich commented Aug 8, 2022

Looks like Span doesn't directly identify which circuits are Solar, and even doesn't list them in the /api/v1/spaces endpoint. the /api/v1/panel endpoint does show the summary information.
If it's worth solving for now, I guess the user could indicate manually 2 circuits that are solar. In the meantime I'll setup a rest sensor to pull directly.

For reference here is my panel info. you can see solar landed on 29/31 which are showing positive #s.

{"mainRelayState":"CLOSED","instantGridPowerW":69.87893676757812,"feedthroughPowerW":10.614139042794704,"gridSampleStartMs":4148802,"gridSampleEndMs":4148830,"dsmGridState":"DSM_GRID_UP","dsmState":"DSM_ON_GRID","currentRunConfig":"PANEL_ON_GRID","branches":
[{"id":1,"relayState":"CLOSED","instantPowerW":0.6829031705856323,"importedActiveEnergyWh":12.428191184997559,"exportedActiveEnergyWh":11618.671875},
{"id":2,"relayState":"CLOSED","instantPowerW":-0.6383089423179626,"importedActiveEnergyWh":52.12168502807617,"exportedActiveEnergyWh":1124.8389892578125},
{"id":3,"relayState":"CLOSED","instantPowerW":-0.15914003551006317,"importedActiveEnergyWh":846.9817504882812,"exportedActiveEnergyWh":179.69520568847656},
{"id":4,"relayState":"CLOSED","instantPowerW":-6.353360176086426,"importedActiveEnergyWh":0.056310996413230896,"exportedActiveEnergyWh":16499.15625},
{"id":5,"relayState":"CLOSED","instantPowerW":-1.9988688230514526,"importedActiveEnergyWh":0.11392389237880707,"exportedActiveEnergyWh":1258405.625},
{"id":6,"relayState":"CLOSED","instantPowerW":0.9469707012176514,"importedActiveEnergyWh":12.821331977844238,"exportedActiveEnergyWh":6762.34033203125},
{"id":7,"relayState":"CLOSED","instantPowerW":-43.038639068603516,"importedActiveEnergyWh":0.053195104002952576,"exportedActiveEnergyWh":1311496.125},
{"id":8,"relayState":"CLOSED","instantPowerW":1.9236708879470825,"importedActiveEnergyWh":26.25176239013672,"exportedActiveEnergyWh":5748.96630859375},
{"id":9,"relayState":"CLOSED","instantPowerW":-60.62098693847656,"importedActiveEnergyWh":0.0,"exportedActiveEnergyWh":67863.703125},
{"id":10,"relayState":"CLOSED","instantPowerW":-0.2413332462310791,"importedActiveEnergyWh":317.1421203613281,"exportedActiveEnergyWh":580.8822021484375},
{"id":11,"relayState":"CLOSED","instantPowerW":-31.752809524536133,"importedActiveEnergyWh":0.03721698001027107,"exportedActiveEnergyWh":55783.2265625},
{"id":12,"relayState":"CLOSED","instantPowerW":-1.534564733505249,"importedActiveEnergyWh":2.1598637104034424,"exportedActiveEnergyWh":33537.375},
{"id":13,"relayState":"CLOSED","instantPowerW":-3.1207187175750732,"importedActiveEnergyWh":0.0,"exportedActiveEnergyWh":5027.681640625},
{"id":14,"relayState":"CLOSED","instantPowerW":0.8306760191917419,"importedActiveEnergyWh":314.95489501953125,"exportedActiveEnergyWh":44.66551971435547},
{"id":15,"relayState":"CLOSED","instantPowerW":-0.4476906657218933,"importedActiveEnergyWh":106.21894836425781,"exportedActiveEnergyWh":203.1708221435547},
{"id":16,"relayState":"CLOSED","instantPowerW":1.6106370687484741,"importedActiveEnergyWh":91.60372924804688,"exportedActiveEnergyWh":236.9394073486328},
{"id":17,"relayState":"CLOSED","instantPowerW":-0.29204821586608887,"importedActiveEnergyWh":11.828445434570312,"exportedActiveEnergyWh":594.6512451171875},
{"id":18,"relayState":"CLOSED","instantPowerW":-23.135639190673828,"importedActiveEnergyWh":2.8437352180480957,"exportedActiveEnergyWh":71045.8203125},
{"id":19,"relayState":"CLOSED","instantPowerW":-477.44287109375,"importedActiveEnergyWh":1.7301361560821533,"exportedActiveEnergyWh":341604.9375},
{"id":20,"relayState":"CLOSED","instantPowerW":-0.7624731659889221,"importedActiveEnergyWh":153.12608337402344,"exportedActiveEnergyWh":133.93496704101562},
{"id":21,"relayState":"CLOSED","instantPowerW":-494.07647705078125,"importedActiveEnergyWh":1.3478084802627563,"exportedActiveEnergyWh":346644.09375},
{"id":22,"relayState":"CLOSED","instantPowerW":0.23521247506141663,"importedActiveEnergyWh":65.89242553710938,"exportedActiveEnergyWh":240.7692108154297},
{"id":23,"relayState":"CLOSED","instantPowerW":0.5395022034645081,"importedActiveEnergyWh":247.38519287109375,"exportedActiveEnergyWh":77.354736328125}
{"id":24,"relayState":"CLOSED","instantPowerW":-1.0326614379882812,"importedActiveEnergyWh":103.29443359375,"exportedActiveEnergyWh":132.72415161132812}
{"id":25,"relayState":"CLOSED","instantPowerW":-209.9669189453125,"importedActiveEnergyWh":72.34424591064453,"exportedActiveEnergyWh":79104.8359375}
{"id":26,"relayState":"CLOSED","instantPowerW":0.2850530445575714,"importedActiveEnergyWh":180.39352416992188,"exportedActiveEnergyWh":110.94115447998047}
{"id":27,"relayState":"CLOSED","instantPowerW":-296.4551696777344,"importedActiveEnergyWh":107.59797668457031,"exportedActiveEnergyWh":108286.8515625}
{"id":28,"relayState":"CLOSED","instantPowerW":0.04721737653017044,"importedActiveEnergyWh":132.52418518066406,"exportedActiveEnergyWh":139.13690185546875}
{"id":29,"relayState":"CLOSED","instantPowerW":781.6661376953125,"importedActiveEnergyWh":60208.078125,"exportedActiveEnergyWh":13280.8017578125},
{"id":30,"relayState":"CLOSED","instantPowerW":1.1454585790634155,"importedActiveEnergyWh":123.61355590820312,"exportedActiveEnergyWh":150.01861572265625},
{"id":31,"relayState":"CLOSED","instantPowerW":823.8155517578125,"importedActiveEnergyWh":70437.96875,"exportedActiveEnergyWh":1507.0411376953125},
{"id":32,"relayState":"CLOSED","instantPowerW":-19.92310905456543,"importedActiveEnergyWh":65.27311706542969,"exportedActiveEnergyWh":29613.439453125}]}

@jeffkibuule
Copy link
Contributor

Can you post the output of api/v1/spaces or api/v1/circuits?

@teich
Copy link
Author

teich commented Aug 10, 2022

api/v1/circuits doesn't exist.

api/v1/spaces

{
   "spaces":{
      "0db7e42a306f43d38f77353592287108":{
         "id":"0db7e42a306f43d38f77353592287108",
         "name":"Well",
         "relayState":"CLOSED",
         "instantPowerW":-42.983549654483795,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":0.16711899638175964,
         "exportEnergyAccumWh":2646071.625,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            5,
            7
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "c6ea16da329e42de9d6a02069952f5e5":{
         "id":"c6ea16da329e42de9d6a02069952f5e5",
         "name":"Air conditioner",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":125.50669288635254,
         "exportEnergyAccumWh":823.9150543212891,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            15,
            17
         ],
         "priority":"NICE_TO_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "f9c3396ccebc470fbd5a9a738e080a65":{
         "id":"f9c3396ccebc470fbd5a9a738e080a65",
         "name":"Pool sub",
         "relayState":"CLOSED",
         "instantPowerW":-961.9674377441406,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":3.0779446363449097,
         "exportEnergyAccumWh":708074.9375,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            19,
            21
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "16ae181f8883422d965efe4754ecadce":{
         "id":"16ae181f8883422d965efe4754ecadce",
         "name":"Lights",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":41.28294086456299,
         "exportEnergyAccumWh":12764.0693359375,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            6,
            8
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "658dae4109074f27901fedee84c4ea60":{
         "id":"658dae4109074f27901fedee84c4ea60",
         "name":"Garage Lights",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":2.608930826187134,
         "exportEnergyAccumWh":33933.64453125,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            12
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "b60b16b02f444d9298856f3be86e3fcb":{
         "id":"b60b16b02f444d9298856f3be86e3fcb",
         "name":"Plugs",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":0.0,
         "exportEnergyAccumWh":5180.8740234375,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            13
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "4ecb2a6e78f64e6a93324ca0ecab0f20":{
         "id":"4ecb2a6e78f64e6a93324ca0ecab0f20",
         "name":"Lights 4",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":337.5390625,
         "exportEnergyAccumWh":46.32403564453125,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            14
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "12e5f393fa934136b96a215457dc7095":{
         "id":"12e5f393fa934136b96a215457dc7095",
         "name":"Lights 5",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":93.82181549072266,
         "exportEnergyAccumWh":252.22279357910156,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            16
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "e3e7298a61a44283874842bfc808c067":{
         "id":"e3e7298a61a44283874842bfc808c067",
         "name":"Guest House",
         "relayState":"CLOSED",
         "instantPowerW":-23.474029541015625,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":2.8437352180480957,
         "exportEnergyAccumWh":73283.15625,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            18
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "a5171c917127474aadad1ca84b7788f9":{
         "id":"a5171c917127474aadad1ca84b7788f9",
         "name":"Outside outlets",
         "relayState":"CLOSED",
         "instantPowerW":-14.897955894470215,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":65.27311706542969,
         "exportEnergyAccumWh":30515.21875,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            32
         ],
         "priority":"NICE_TO_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "34a7c69db90a40338d0d4e5ff41eeacc":{
         "id":"34a7c69db90a40338d0d4e5ff41eeacc",
         "name":"Wall front",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":12.493515014648438,
         "exportEnergyAccumWh":11728.330078125,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            1
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "680ffab204da4133b4d7106f52a47ada":{
         "id":"680ffab204da4133b4d7106f52a47ada",
         "name":"Spare 2",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":57.635597229003906,
         "exportEnergyAccumWh":1144.9510498046875,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            2
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "0c50df8f27364b1faf5adb1192db4951":{
         "id":"0c50df8f27364b1faf5adb1192db4951",
         "name":"Spare 1",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":860.0040893554688,
         "exportEnergyAccumWh":194.015380859375,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            3
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "3fa3dafd6d4d48dbbe446cbfb59bc74f":{
         "id":"3fa3dafd6d4d48dbbe446cbfb59bc74f",
         "name":"Back",
         "relayState":"CLOSED",
         "instantPowerW":-6.822036266326904,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":0.056310996413230896,
         "exportEnergyAccumWh":16908.1875,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            4
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "17e3980644934fec82c1f1fe1d45edca":{
         "id":"17e3980644934fec82c1f1fe1d45edca",
         "name":"Internet GFCI",
         "relayState":"CLOSED",
         "instantPowerW":-59.11265563964844,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":0.0,
         "exportEnergyAccumWh":71233.078125,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            9
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":false,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "954b6c3797b24740ad3d6e2e4e0feed2":{
         "id":"954b6c3797b24740ad3d6e2e4e0feed2",
         "name":"Lights 2",
         "relayState":"CLOSED",
         "instantPowerW":0.0,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":334.4716796875,
         "exportEnergyAccumWh":582.8305053710938,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            10
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "2d058a73b8a145eb9207a8e7dd719fae":{
         "id":"2d058a73b8a145eb9207a8e7dd719fae",
         "name":"Garage door",
         "relayState":"CLOSED",
         "instantPowerW":-31.86560821533203,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":0.03721698001027107,
         "exportEnergyAccumWh":57457.37890625,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            11
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      },
      "9171c3c5e25149f2ab0839252d9dc17e":{
         "id":"9171c3c5e25149f2ab0839252d9dc17e",
         "name":"House sub",
         "relayState":"CLOSED",
         "instantPowerW":-544.154899597168,
         "instantPowerUpdateTimeS":1660164284,
         "importEnergyAccumWh":179.94222259521484,
         "exportEnergyAccumWh":231358.59375,
         "energyAccumUpdateTimeS":1660163595,
         "tabs":[
            25,
            27
         ],
         "priority":"MUST_HAVE",
         "is_user_controllable":true,
         "is_sheddable":false,
         "is_never_backup":false
      }
   }
}```

@galak
Copy link
Owner

galak commented Aug 10, 2022

api/v1/circuits doesn't exist.

I think its a newer firmware thing. Not sure how long it will take for our systems to update.

jeffkibuule pushed a commit to jeffkibuule/span-hacs that referenced this issue Jan 28, 2023
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

3 participants