MorneSaunders360 / Solar-Sunsynk

Monitor your energy generation, storage, and usage data using an unofficial API from Sunsynk
MIT License
9 stars 2 forks source link

Can't switch Grid Charge 1-6 or Gen Charge 1-6 on #11

Closed Nurgus closed 7 months ago

Nurgus commented 9 months ago

Is there a guide for all the options the service can control? What does mondayOn do for example? There's nothing in the official UI that seems to correspond.

I'm using this in a script. It changes the other settings but the time1on true/false options (including 1 to 6) don't take effect. The existing settings remain.

cap1 to cap6 do take effect.

sequence:
  - service: solar_sunsynk.set_solar_settings
    data:
      sn: "xxxxx"
      sellTime1: "01:00"
      sellTime2: "05:00"
      sellTime3: "12:30"
      sellTime4: "13:00"
      sellTime5: "17:00"
      sellTime6: "21:00"
      cap1: "20"
      cap2: "20"
      cap3: "20"
      cap4: "20"
      cap5: "20"
      cap6: "20"
      time1on: false
      time2on: true
      time3on: true
      time4on: false
      time5on: false
      time6on: false
      sysWorkMode: "2"
MorneSaunders360 commented 8 months ago

Hey Nurgus,

Sorry for the delay in response; I was away on my honeymoon. I've noticed there's no official guide for each of the sensors. I'll work on setting up a guide and updating the readme. Additionally, I'll investigate why the other settings aren't updating.

Thanks for your patience!

MorneSaunders360 commented 8 months ago

Hello Nurgus,

I've uploaded a Service Guide to our repository, which you can find here: Service Guide on GitHub.

Please review the guide, especially the mappings between the service and the front end. I hope this will enhance your understanding of how the Sunsynk service operates.

Nurgus commented 8 months ago

Many thanks for the excellent service guide. Regarding the issue with time1on..time6on not taking effect - are you able to reproduce it or is it just me?

MorneSaunders360 commented 8 months ago

@Nurgus In order to set time1on..time6on, you need to add genTime1on..genTime6on to the service. It seems like they are working in a pair in order to be updated

image image