tomatensaus / DeyeSolarDesktop

Home Assistant bootstrap for monitoring solar for Deye/Sunsynk/Sol-Ark
MIT License
42 stars 4 forks source link

Number. vs select. in tabs "Time of Use" and "Time of Use 2" #6

Open bsafh opened 1 week ago

bsafh commented 1 week ago

I understand that the automations read the time settings from the inverter to the time data in those tabs and vice versa.

This assumes the values from the inverter are of type number. As I'm using the sunsyk addon (via modbus), those values are of type select.

Do I need the automations at all or can I just use the select entities directly in the dashboard?

If not, how do I convert select to number and back?

tomatensaus commented 1 week ago

I understand that the automations read the time settings from the inverter to the time data in those tabs and vice versa.

This part I can confirm, I take the raw number and convert it to a time object so that the editor on the UI validates the input. Any Change gets converted back to number and written again. I am planning to write a native date object in one of the new firmware versions that would allow the removal of the automation.

About your question: Sorry but I have no idea about the select, I also assume it comes via MQTT, to me this seems like the wrong way to implement a date. I doubt you can change it and write it back.

https://www.home-assistant.io/integrations/select.mqtt/

bsafh commented 1 week ago

Yes, the select comes via MQTT (the sunsyk deye addon communicates with HA via MQTT)

Looks ok, I guess

Screenshot_20240625_232335_Home Assistant Screenshot_20240625_232545_Home Assistant

That's a high voltage hybrid inverter, the settings/config is a bit different from the low voltage inverters, there is no energy management mode selector in the Deye menues. It'ssplit up into several separate settings (Sell first/zero export to load/zero export to CT + "allow sell" for "zero export to load" and separetly for "zero export to CT" + "export to grid load Limit in Watt")

I have two of those, and both need to have a battery of their own in order to work in Master-Slave Mode... you can't just connect both inverters to one battery like it's done for low voltage inverters.

tomatensaus commented 6 days ago

I have several systems running the High Voltage version on my SmartDeyeDongle.

Could you please send some screenshots of the actual menus on the Deye. I developed my firmware on the Sunsynk 50 and there was very little difference, screens all look similar to the other low voltage inverters. I cater for 2 battery inputs (but combine them for the screen).

I guess the difference is most people do not want to spend a week or more setting up their inverter dashboard before actually using it. How would the screen above set the time to 1:25 ? Is that possible?

bsafh commented 6 days ago

I'll supply some Fotos.

1:25 is not directly possible, the select box is prefilled in 15 minutes intervalls. But you can call a service to set any value you want:

service: select.select_option
target:
  entity_id: select.my_entity
data:
  option: "example_option"

That's straight from https://www.home-assistant.io/integrations/select/.

I think there is even an option in the deye/sunsyk addon to set the desired intervall step. 15 minutes + the option Service is OK for me though.

bsafh commented 6 days ago

@tomatensaus photos

20240626_170217 20240626_170519 20240626_170525 20240626_170530 20240626_170537 20240626_170542 20240626_170550 20240626_170555 20240626_170601 20240626_170605 20240626_170614 20240626_170621 20240626_170627 20240626_170632 20240626_170637 20240626_170643 20240626_170648 20240626_170652 20240626_170702 20240626_170706 20240626_170719 20240626_170724 20240626_170729 20240626_170733 20240626_170737 20240626_170741 20240626_170749 20240626_170809 20240626_170832 20240626_170843 20240626_170848

tomatensaus commented 6 days ago

That's a high voltage hybrid inverter, the settings/config is a bit different from the low voltage inverters, there is no energy management mode selector in the Deye menues. It'ssplit up into several separate settings (Sell first/zero export to load/zero export to CT + "allow sell" for "zero export to load" and separetly for "zero export to CT" + "export to grid load Limit in Watt")

Thank you for the screenshots, I must have misunderstood, though there would be a difference

Those all match the LV inverter, and the screens even look the same than my Deye LV inverter (except for 3phase data)

bsafh commented 6 days ago

Perhaps it's a software version thing, I have definitely seen different energy mode screens.

Anyway, works now over here.

Screenshot_20240626_190905_Home Assistant Screenshot_20240626_190926_Home Assistant Screenshot_20240626_190951_Home Assistant Screenshot_20240626_191001_Home Assistant Screenshot_20240626_191026_Home Assistant Screenshot_20240626_191036_Home Assistant Screenshot_20240626_191146_Home Assistant