Open wawyed opened 1 year ago
I have made a start on the time branch https://github.com/wills106/homeassistant-solax-modbus/tree/time But I am struggling to understand how to implement it at the moment.
Is it this one the one you are looking at ? https://www.home-assistant.io/integrations/input_datetime
I was just going to implement the time entity https://developers.home-assistant.io/docs/core/entity/time I don't think we need any date support?
You are probably right. The other one date is optional but I think it's for user creation not an integration.
Did you manage to get it working in the end? @wills106
Not yet, at the time there was only 2 Integrations supporting time and I didn't understand how they were getting it to work. I'll have another look to see if there is more info available now it's been out for a while.
I'm sure there are other important pieces, just wanted to bring to your attention that it appears that this project implemented time entries for charge discharge - https://github.com/Pho3niX90/solis_modbus
is this something that'll ever get implemented? Just consider if it's worth moving to the other project for Solis or worth staying on this one?
I have updated the time branch with newer code where at least the time entity loads. Even though it doesn't write anything at the min. I'm looking at setting up a Modbus simulator in docker for testing purposes. So I'm not restarting my live HA 1,000's of times and potentially writing something I shouldn't be doing to the Inverter.
Can't comment on any timeframes.
If anyone knows what they are doing better than I do with python I have had another attempt.
https://github.com/wills106/homeassistant-solax-modbus/tree/time
time.py is based on select.py and time.2.py is based on number.py Neither return the value from "charger_start_time_1" need that working before progressing to writing the time.
I just saw the new version released and might be useful to update to the new entity types for updating the charge discharge times on the Solis inverters at least. Might simplify things :)
https://www.home-assistant.io/blog/2023/06/07/release-20236/#new-entities-date-time-datetime