fboundy / ha_solis_modbus

YAML file for reading Solis Hybrid Inverter directly with HA native modbus
MIT License
50 stars 7 forks source link

Cannot set : Scripts: Solis Set Eco7 Times #10

Closed Bignose3 closed 1 year ago

Bignose3 commented 1 year ago

Hi,

I simply cannot get it to run without an error. I am sure you are too busy to resolve & imagine dozens of possibilites but I am really struggling & run out of Ideas, is there any quick direction you can point me in to at least try.

I have all the script, template yaml's etc. I am sure exactly as you have in your lists the two, input_datetime.economy_7_start & end have values from an entity on a page. I can read all the sensors, just cannot set any. I tried direct from setting/scripts, however it does say "failed to call service" whereas running the automation, on change of value start or end, I get the process below & then the error.

Triggered manually at 21 June 2023 at 15:21:14 Scripts: Solis Set Eco7 Times Solis Set Eco7 Times (script.solis_set_eco7_times) started (script.solis_set_eco7_times) turned on Solis Write Holding Register (script.solis_write_holding_register) started (script.solis_write_holding_register) turned on (script.solis_write_holding_register) turned off (script.solis_set_eco7_times) turned off Stopped because an error was encountered at 21 June 2023 at 15:21:14 (runtime: 0.02 seconds) 'solis'

Indents sure correct, I have Visual Studio & the helper so does show problems.

Copy as below direct from your repository plus the rest, I have not included below but is in my yaml. `solis_set_eco7_times: alias: Solis Set Eco7 Times sequence:

fboundy commented 1 year ago

That error means it doesn't have a Modbus hub named solis. Have you added the necessary include line into your configuration.yaml file and restarted HA?


From: Bignose3 @.> Sent: 21 June 2023 15:44 To: fboundy/ha_solis_modbus @.> Cc: Subscribed @.***> Subject: [fboundy/ha_solis_modbus] Cannot set : Scripts: Solis Set Eco7 Times (Issue #10)

Hi,

I simply cannot get it to run without an error. I am sure you are too busy to resolve & imagine dozens of possibilites but I am really struggling & run out of Ideas, is there any quick direction you can point me in to at least try.

I have all the script, template yaml's etc. I am sure exactly as you have in your lists the two, input_datetime.economy_7_start & end have values from an entity on a page. I can read all the sensors, just cannot set any. I tried direct from setting/scripts, however it does say "failed to call service" whereas running the automation, on change of value start or end, I get the process below & then the error.

Triggered manually at 21 June 2023 at 15:21:14 Scripts: Solis Set Eco7 Times Solis Set Eco7 Times (script.solis_set_eco7_times) started (script.solis_set_eco7_times) turned on Solis Write Holding Register (script.solis_write_holding_register) started (script.solis_write_holding_register) turned on (script.solis_write_holding_register) turned off (script.solis_set_eco7_times) turned off Stopped because an error was encountered at 21 June 2023 at 15:21:14 (runtime: 0.02 seconds) 'solis'

Indents sure correct, I have Visual Studio & the helper so does show problems.

Copy as below direct from your repository plus the rest, I have not included below but is in my yaml. solis_set_eco7_times: alias: Solis Set Eco7 Times sequence: - service: script.solis_write_holding_register data: register_addr: 43143 register_value: "{{(states('input_datetime.economy_7_start')).split(':')[0] | int}}" - service: script.solis_write_holding_register data: register_addr: 43144 register_value: "{{(states('input_datetime.economy_7_start')).split(':')[1] | int}}" - service: script.solis_write_holding_register data: register_addr: 43145 register_value: "{{(states('input_datetime.economy_7_end')).split(':')[0] | int}}" - service: script.solis_write_holding_register data: register_addr: 43146 register_value: "{{(states('input_datetime.economy_7_end')).split(':')[1] | int}}" mode: single icon: mdi:battery-clock-outline

— Reply to this email directly, view it on GitHubhttps://github.com/fboundy/ha_solis_modbus/issues/10, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABHJ7PN3Q664AFAQ5GLAGYTXMMCENANCNFSM6AAAAAAZO3XGVY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Bignose3 commented 1 year ago

SOLVED, many thanks you remarks made me look v.closely I did have all the config & yaml "included" etc. etc. BUT

what I noticed was in the solis.yaml I had Capital S "Solis", changed to below & worked!! been using for weeks just reading sensors & never been a problem