August 3, 20233 yr Hi, I've had my solar install for a few weeks now and I have been trying to get to grips with Home Assistant. I have been trying slipx06's Dash and ESPHome code. I have an ESP32 board hooked up to the inverter. I have managed to get so far. I have the powerflow working and I have started to play with the control settings. I am struggling to set the times for the grid charge. I can turn the grid charge options on / off and change the SOC % and charge power but I cant change the times. Is it because all the settings that I can change are pulled in as a controls but the clock settings are pulled in as a sensor? When I click on the time to try and change it I just get the history popup. Any ideas would be appreciated
August 3, 20233 yr Hi @JonWarby You will need to update the ESPHome config and setup additional sensors as input numbers. I don't change my time settings so never configured them. Something like this number: - platform: modbus_controller # 250 System Mode Time 1 use_write_multiple: true modbus_controller_id: sunsynk name: "${friendly_name} System Mode Time 1 Start" id: sunsynk_esphome_system_mode_time1_input address: 250 value_type: U_WORD Edited August 3, 20233 yr by slipx
August 3, 20233 yr Author Ah, ok, thank you, so I had it working as designed? I thought I had messed something up. I am on an agile electricity tariff that varies from day to day so sometimes on the days where there isn't a huge amount of solar I may need a nightly top up of the batteries and the cheapest slots will vary. Thank you. Will look to give that a go tomorrow.
August 4, 20233 yr Author I had a go with this on just the first timer. I moved the #250 section under the number section of the config file and changed the elements you suggested above. After pushing the code it changes the element to a number value. It seems to drop the : so for example 00:30 is read as 30. 2:30 is read as 230. If I change the values on the sunsynk app I can see those changes come through to Home Assistant. The number is also editable now so I can type in a new number in the time slot. Whatever number I enter seems to be ignored and after a few minutes just gets refreshed with the value that it's defined in the app. I think this is the part of the log that is relevant [11:46:27][D][number:113]: New number value: 200.000000 [11:46:27][D][modbus.number:061]: Updating register: connected Sensor=SunSynk System Mode Time1 start address=0xFA register count=1 new value=200.00 (val=200.00) [11:46:27][D][number:012]: 'SunSynk System Mode Time1': Sending state 200.000000 [11:46:28][D][modbus_controller:032]: Modbus command to device=1 register=0xFA countdown=0 no response received - removed from send queue I assume that it's not happy with the value and not accepting it Edited August 4, 20233 yr by JonWarby
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.