Closed funks81 closed 9 months ago
I have just gone from HA 2023.10.x to 2023.11.2 perfectly fine. Once you have moved to 2023.11.2 did you try restarting HA again?
I am having the same issue. Restarted HA multiple times. Checked I had the latest Solax modbus installed and reloaded. Checked the logger. I don't have a back-up old enough to roll back to HA10.x.
Do you get anymore information in the error log if you add:
logger:
default: info
to the configuration.yaml file?
When you are on HA 2023.11.2 what version is pyModbus showing? They moved from 3.5.2 to 3.5.4, but my Install has moved over to 3.5.4 correctly.
You can find out by following Point 4 of FAQ
Are either of you using any other Integrations using Modbus?
Yep - did try restarting HA again after the upgrade - will try the logger when I get home - thanks. Sent from my iPhoneOn 13 Nov 2023, at 13:10, wills106 @.***> wrote: I have just gone from HA 2023.10.x to 2023.11.2 perfectly fine. Once you have moved to 2023.11.2 did you try restarting HA again?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I added the additional YAML to the configuration.YAML. Restarted. No additional data provided.
I only use Modbus for the inverter - nothing else.
@DKen71 can you have a look at what version pyModbus is installed. Wonder if it's got corrupt or completely missing?
@wills106 It is not listed at all. I have just upgraded to 2023.11.2 to see if that solved it, but still missing. Not sure where it went between upgrades.
I've just installed pymodbus 3.5.4 and reloading. Will report back.
I've installed pymodbus3.5.4 and checked that it has installed. I've deleted /custom_components/solax_modbus and downloaded it again. Restarted HA. No change. I've checked that data is coming from the EW11 unit and that it is connected to the WIFI network.
Have you checked pyModbus is still there after reinstalling the integration and restarting HA?
Just wondering if there is a HA bug causing the python module to get deleted?
So - just upgraded again to latest version HA core - with logger turned on in config
When I first restarted - I briefly got data for the entities - then went to unknown again - have restarted HA for a second time - and currently seem to be getting data - only been up for about 5 minutes - but seems to be working.
Have just manually restarted the integration and now getting "Unavailable" beside entities -but interestingly no errors shown in the logs.
Have tried restarting the EW11 - remains unchanged
After restarting HA for a third time - entities showing as Unavailable - have put the logs for this restart at the bottom of this page
Not sure where I'm looking for pyModbus - couldn't see in HACS or HA?
Getting the following in the logs with logger switched on:
2023-11-13 15:16:25.387 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-13 15:16:29.364 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'homeassistant', 'script', 'mobile_app', 'media_source', 'samsungtv', 'scene', 'select', 'hardware', 'solax_modbus', 'map', 'history', 'image_upload', 'solcast_solar', 'auth', 'logbook', 'octopus_energy', 'automation', 'tag', 'energy', 'file_upload', 'config', 'application_credentials', 'repairs', 'onboarding', 'sensor', 'tuya', 'counter', 'zone', 'wake_word', 'my', 'diagnostics', 'localtuya', 'stt', 'conversation', 'tts', 'input_number', 'input_boolean', 'tesla_custom', 'meross_lan', 'sun', 'hacs', 'default_config', 'blueprint', 'person', 'schedule', 'uptime', 'homeassistant_alerts', 'input_button', 'persistent_notification', 'ffmpeg', 'mqtt', 'alexa', 'speedtestdotnet', 'input_datetime', 'timer', 'esphome', 'fully_kiosk', 'input_text', 'integration', 'threshold', 'heatmiserneo', 'analytics', 'shelly', 'stream', 'forecast_solar', 'device_automation', 'assist_pipeline', 'utility_meter', 'trace', 'lovelace', 'search', 'system_health', 'input_select'} 2023-11-13 15:16:29.792 INFO (MainThread) [homeassistant.setup] Setting up solax_modbus 2023-11-13 15:16:29.792 INFO (MainThread) [homeassistant.setup] Setup of domain solax_modbus took 0.0 seconds 2023-11-13 15:16:29.920 INFO (MainThread) [custom_components.solax_modbus.config_flow] detected HA core version 2023 11 2023-11-13 15:16:29.920 INFO (MainThread) [custom_components.solax_modbus.config_flow] starting configflow - domain = solax_modbus 2023-11-13 15:16:29.921 INFO (MainThread) [custom_components.solax_modbus] trying to load plugin - plugin_name: solis 2023-11-13 15:16:29.928 INFO (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: trying to determine inverter type 2023-11-13 15:16:30.322 INFO (MainThread) [custom_components.solax_modbus.plugin_solis] Read SolisDirect 0x80ec serial number: 60310502273002, swapped: False 2023-11-13 15:16:32.381 INFO (MainThread) [homeassistant.components.select] Setting up select.solax_modbus 2023-11-13 15:16:32.393 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.solax_modbus 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa7ff power_switch to block with start 0xa7ff 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa803 battery_minimum_soc to block with start 0xa7ff 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa810 backup_mode_soc to block with start 0xa7ff 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0xa841 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa841 backflow_power_switch to block with start 0xa841 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa842 backflow_power to block with start 0xa841 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa86c battery_chargedischarge_current to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa86d battery_charge_current to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa86e battery_discharge_current to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa885 timed_charge_current to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa886 timed_discharge_current to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa887 timed_charge_start_h to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa888 timed_charge_start_m to block with start 0xa86c 2023-11-13 15:16:32.394 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa889 timed_charge_end_h to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa88a timed_charge_end_m to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa88b timed_discharge_start_h to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa88c timed_discharge_start_m to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa88d timed_discharge_end_h to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa88e timed_discharge_end_m to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa891 timed_charge_start_h_2 to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa892 timed_charge_start_m_2 to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa893 timed_charge_end_h_2 to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa894 timed_charge_end_m_2 to block with start 0xa86c 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa895 timed_discharge_start_h_2 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa896 timed_discharge_start_m_2 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa897 timed_discharge_end_h_2 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa898 timed_discharge_end_m_2 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa89b timed_charge_start_h_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa89c timed_charge_start_m_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa89d timed_charge_end_h_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa89e timed_charge_end_m_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa89f timed_discharge_start_h_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa8a0 timed_discharge_start_m_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa8a1 timed_discharge_end_h_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0xa8a2 timed_discharge_end_m_3 to block with start 0xa895 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x80fe rtc to block with start 0x80fe 2023-11-13 15:16:32.395 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8105 power_generation_total to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8107 power_generation_this_month to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8109 power_generation_last_month to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x810b power_generation_today to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x810c power_generation_yesterday to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x810d power_generation_this_year to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x810f power_generation_last_year to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8119 pv_voltage_1 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811a pv_current_1 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811b pv_voltage_2 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811c pv_current_2 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811d pv_voltage_3 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811e pv_current_3 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x811f pv_voltage_4 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8120 pv_current_4 to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8121 pv_total_power to block with start 0x80fe 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8131 inverter_voltage to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8134 inverter_current to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8137 active_power to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8139 reactive_power to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x813b apparent_power to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8145 inverter_temperature to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8146 grid_frequency to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8147 inverter_status to block with start 0x8131 2023-11-13 15:16:32.396 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8166 meter_total_activepower to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8168 meter_voltage to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8169 meter_current to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x816a meter_active_power to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x816c energy_storage_control_switch to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x816d battery_voltage to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x816e battery_current to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x816f battery_charge_direction to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8173 battery_soc to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8174 battery_soh to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8175 bms_battery_voltage to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8176 bms_battery_current to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8177 bms_battery_charge_limit to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8178 bms_battery_discharge_limit to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x817b house_load to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x817c bypass_load to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x817d battery_power to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8189 total_battery_charge to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x818b battery_charge_today to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x818c battery_charge_yesterday to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x818d total_battery_discharge to block with start 0x8166 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0x818f 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x818f battery_discharge_today to block with start 0x818f 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8190 battery_discharge_yesterday to block with start 0x818f 2023-11-13 15:16:32.397 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8191 grid_import_total to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8193 grid_import_today to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8194 grid_import_yesterday to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8195 grid_export_total to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8197 grid_export_today to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8198 grid_export_yesterday to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8199 house_load_total to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x819b house_load_today to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x819c house_load_yesterday to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81b6 battery_charge_current_limit to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81b7 battery_discharge_current_limit to block with start 0x818f 2023-11-13 15:16:32.398 INFO (MainThread) [custom_components.solax_modbus.sensor] Starting new block at 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81e3 meter_ac_voltage to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81e4 meter_ac_current to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81ef meter_activepower_total to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81f1 meter_reactive_power to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81f7 meter_reactive_power_total to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81f9 meter_apparent_power to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x81ff meter_apparent_power_total to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8201 meter_power_factor to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8202 meter_grid_frequency to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8203 meter_grid_import_total to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] adding register 0x8205 meter_grid_export_total to block with start 0x81e3 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning holding block: 0xa7ff 0xa811 [43007, 43011, 43024] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning holding block: 0xa841 0xa843 [43073, 43074] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning holding block: 0xa86c 0xa895 [43116, 43117, 43118, 43141, 43142, 43143, 43144, 43145, 43146, 43147, 43148, 43149, 43150, 43153, 43154, 43155, 43156] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning holding block: 0xa895 0xa8a3 [43157, 43158, 43159, 43160, 43163, 43164, 43165, 43166, 43167, 43168, 43169, 43170] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning input block: 0x80fe 0x8123 [33022, 33029, 33031, 33033, 33035, 33036, 33037, 33039, 33049, 33050, 33051, 33052, 33053, 33054, 33055, 33056, 33057] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning input block: 0x8131 0x8148 [33073, 33076, 33079, 33081, 33083, 33093, 33094, 33095] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning input block: 0x8166 0x818f [33126, 33128, 33129, 33130, 33132, 33133, 33134, 33135, 33139, 33140, 33141, 33142, 33143, 33144, 33147, 33148, 33149, 33161, 33163, 33164, 33165] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning input block: 0x818f 0x81b8 [33167, 33168, 33169, 33171, 33172, 33173, 33175, 33176, 33177, 33179, 33180, 33206, 33207] 2023-11-13 15:16:32.399 INFO (MainThread) [custom_components.solax_modbus.sensor] SolisDirect returning input block: 0x81e3 0x8207 [33251, 33252, 33263, 33265, 33271, 33273, 33279, 33281, 33282, 33283, 33285] 2023-11-13 15:16:32.406 INFO (MainThread) [custom_components.solax_modbus.sensor] computedRegs: {'battery_input_energy': SolisModbusSensorEntityDescription(key='battery_input_energy', device_class=<SensorDeviceClass.POWER: 'power'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon='mdi:battery-arrow-up', has_entity_name=False, name='Battery Input Energy', translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<UnitOfPower.WATT: 'W'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None, allowedtypes=4096, scale=1, read_scale_exceptions=None, read_scale=1, blacklist=None, register=-1, rounding=1, register_type=1, unit='_uint16', newblock=False, value_function=<function value_function_battery_input_solis at 0x7fcba57e67a0>, wordcount=None, sleepmode=1, ignore_readerror=False, order16=<Endian.BIG: '>'>, order32=<Endian.BIG: '>'>), 'battery_output_energy': SolisModbusSensorEntityDescription(key='battery_output_energy', device_class=<SensorDeviceClass.POWER: 'power'>, entity_category=None, entity_registry_enabled_default=True, entity_registry_visible_default=True, force_update=False, icon='mdi:battery-arrow-down', has_entity_name=False, name='Battery Output Energy', translation_key=None, unit_of_measurement=None, last_reset=None, native_unit_of_measurement=<UnitOfPower.WATT: 'W'>, options=None, state_class=<SensorStateClass.MEASUREMENT: 'measurement'>, suggested_display_precision=None, suggested_unit_of_measurement=None, allowedtypes=4096, scale=1, read_scale_exceptions=None, read_scale=1, blacklist=None, register=-1, rounding=1, register_type=1, unit='_uint16', newblock=False, value_function=<function value_function_battery_output_solis at 0x7fcba57e6700>, wordcount=None, sleepmode=1, ignore_readerror=False, order16=<Endian.BIG: '>'>, order32=<Endian.BIG: '>'>)} 2023-11-13 15:16:32.429 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform solax_modbus 2023-11-13 15:16:32.437 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up solax_modbus platform for sensor 2023-11-13 15:16:32.480 INFO (MainThread) [homeassistant.components.button] Setting up button.solax_modbus 2023-11-13 15:16:32.480 INFO (MainThread) [homeassistant.components.number] Setting up number.solax_modbus 2023-11-13 15:16:32.480 INFO (MainThread) [custom_components.solax_modbus.button] hub.wakeuButton: None 2023-11-13 15:19:57.646 INFO (MainThread) [custom_components.solax_modbus] read_error : SolisDirect cannot read holding registers at device 1 position 0xa7ff 2023-11-13 15:19:57.650 WARNING (MainThread) [homeassistant.components.number] Updating solax_modbus number took longer than the scheduled update interval 0:00:30 File "/config/custom_components/solax_modbus/sensor.py", line 168, in async_will_remove_from_hass self._hub.async_remove_solax_modbus_sensor(self._modbus_data_updated) File "/config/custom_components/solax_modbus/init.py", line 282, in async_remove_solax_modbus_sensor 2023-11-13 15:26:58.514 INFO (MainThread) [custom_components.solax_modbus.config_flow] validating host: returning data: {'host': '192.168.68.103', 'port': 502, 'tcp_type': 'tcp'} 2023-11-13 15:27:16.602 INFO (MainThread) [custom_components.solax_modbus.config_flow] validating host: returning data: {'host': '192.168.68.103', 'port': 502, 'tcp_type': 'tcp'}
After 3rd restart:
2023-11-13 15:29:35.860 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-13 15:29:40.719 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'onboarding', 'input_text', 'localtuya', 'forecast_solar', 'config', 'auth', 'analytics', 'file_upload', 'conversation', 'mqtt', 'solax_modbus', 'samsungtv', 'image_upload', 'input_select', 'lovelace', 'esphome', 'tts', 'energy', 'repairs', 'my', 'script', 'scene', 'speedtestdotnet', 'history', 'diagnostics', 'device_automation', 'input_datetime', 'octopus_energy', 'integration', 'shelly', 'default_config', 'person', 'assist_pipeline', 'tesla_custom', 'stream', 'input_boolean', 'input_button', 'mobile_app', 'tag', 'wake_word', 'media_source', 'timer', 'utility_meter', 'alexa', 'stt', 'hardware', 'persistent_notification', 'meross_lan', 'uptime', 'solcast_solar', 'logbook', 'fully_kiosk', 'ffmpeg', 'homeassistant', 'application_credentials', 'select', 'system_health', 'map', 'automation', 'zone', 'trace', 'search', 'schedule', 'homeassistant_alerts', 'blueprint', 'sun', 'counter', 'sensor', 'heatmiserneo', 'tuya', 'input_number', 'hacs', 'threshold'} 2023-11-13 15:29:41.435 INFO (MainThread) [homeassistant.setup] Setting up solax_modbus 2023-11-13 15:29:41.436 INFO (MainThread) [homeassistant.setup] Setup of domain solax_modbus took 0.0 seconds 2023-11-13 15:29:41.666 INFO (MainThread) [custom_components.solax_modbus.config_flow] detected HA core version 2023 11 2023-11-13 15:29:41.666 INFO (MainThread) [custom_components.solax_modbus.config_flow] starting configflow - domain = solax_modbus 2023-11-13 15:29:41.666 INFO (MainThread) [custom_components.solax_modbus] trying to load plugin - plugin_name: solis 2023-11-13 15:29:41.679 INFO (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: trying to determine inverter type 2023-11-13 15:29:46.695 WARNING (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: reading serial number from address 0x80ec failed; other address may succeed 2023-11-13 15:29:46.695 INFO (MainThread) [custom_components.solax_modbus.plugin_solis] Read SolisDirect 0x80ec serial number: None, swapped: False 2023-11-13 15:29:46.695 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: cannot find serial number, even not for other Inverter 2023-11-13 15:29:46.695 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] unrecognized SolisDirect inverter type - serial number : unknown 2023-11-13 15:29:48.407 INFO (MainThread) [homeassistant.components.select] Setting up select.solax_modbus 2023-11-13 15:29:48.408 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.solax_modbus 2023-11-13 15:29:48.409 INFO (MainThread) [custom_components.solax_modbus.sensor] computedRegs: {} 2023-11-13 15:29:48.410 INFO (MainThread) [homeassistant.components.button] Setting up button.solax_modbus 2023-11-13 15:29:48.411 INFO (MainThread) [homeassistant.components.number] Setting up number.solax_modbus 2023-11-13 15:29:48.411 INFO (MainThread) [custom_components.solax_modbus.button] hub.wakeuButton: None
Something very strange happening with my set-up.
I installed pymodbus, then confirmed it is installed. If I restart HA, then it is still there. If I reboot HAOS, then it disappears.
I've done this twice now and I get the same results.
Looks like I may have to rebuild this.
Not sure where I'm looking for pyModbus - couldn't see in HACS or HA?
The instructions are here by following Point 4 of FAQ
If I reboot HAOS, then it disappears.
If you change https://github.com/wills106/homeassistant-solax-modbus/blob/5683b66317f2a880a0c69d58542b9a484dc00129/custom_components/solax_modbus/manifest.json#L11 to
"pymodbus==3.5.4"
does it survive restarts of HA or does it still disappear?
I've changed requirements. On restart of HA, it retains pymodbus.3.4.5. Restarting HAOS deletes it again.
I'm running HAOS on a VM in Proxmox - pip doesn't seem to be a supported command from the console for HA
does it survive restarts of HA or does it still disappear?
It doesn't survive the restart of the OS.
However, I have everything back and working now. I rolled back the Core to 2023.10.5 and reinstalled SolaxModbus via HACS to a 2023.10.2. That still was not working. I then upgraded each component in sequence. Core 2023.11.1 and SM 2023.11.1 gave me the functionality back.
I followed on that process and now I am up to date on both components and it is still working.
Having said that, pymodbus 3.4.5 is still not showing when I use pip show pymodbus
or pip list
.
Not sure what I have done, but there must have been something that broke during an upgrade. I'll report back if anything else crops up.
Thanks for the patience and assistance.
Is anyone still having issues where pyModbus disappears?
If so it might be worth raising an Issue with core or HAOS? I'm closing it down from this end as I am not sure what could cause it and I haven't experienced it.
I've tried upgrading HA core to version 11.0 / 11.1 / 11.2 and after upgrading the entities are "unknown". On downgrading back to HA core 10.5 everything starts working again. I get the error reading serial number when upgrading HA core - but find this strange as everything seems to run fine whilst running HA core 10.5.
Integration Version: 2023.11.3 HA Version: 2023.11.0 / 11.1 / 11.2 Inverter Brand: Solis Plugin Used: Solax Modbus First 6 digits of Serial: 180102 Connection Method: Modbus via TCP
I have the following errors in my log when running any of the HA core 11.0/11.1/11.2 versions:
2023-11-13 12:32:21.210 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-11-13 12:32:31.203 WARNING (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: reading serial number from address 0x80ec failed; other address may succeed 2023-11-13 12:32:31.204 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] SolisDirect: cannot find serial number, even not for other Inverter 2023-11-13 12:32:31.204 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] unrecognized SolisDirect inverter type - serial number : unknown 2023-11-13 12:33:38.749 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform solax_modbus 2023-11-13 12:33:38.755 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up solax_modbus platform for sensor
When running HA core 10.5 the only thing showing in my log is:
2023-11-13 11:15:26.020 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant