home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.8k stars 30.5k forks source link

Modbus restart error on 2024.7.1 #121432

Closed sagitt closed 3 months ago

sagitt commented 3 months ago

The problem

Hi, I found this error (as repairs) executing modbus.restart service from a script: Screenshot 2024-07-06 alle 13 58 57 but in the modbus documentation i still see the modbus restart service: Screenshot 2024-07-06 alle 13 59 25 What i have to do to restart my modbus connection for a specific hub? and why Documentation and HA have this discrepancy? Anyway i found this error only executing my script... nothing in logs or config check.

What version of Home Assistant Core has the issue?

core-2024.7.1

What was the last working version of Home Assistant Core?

n/a

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Modbus

Link to integration documentation on our website

https://www.home-assistant.io/integrations/modbus/

Diagnostics information

No response

Example YAML snippet

modbus_openmeter_openmeter_modbus_communication_restart:
    alias: 'Riavvio Comunicazione POD'
    icon: mdi:refresh-circle
    mode: single
    max_exceeded: silent
    sequence:
    - service: modbus.restart
      data_template:
        hub: !secret modbus_openmeter_name

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @janiversen, mind taking a look at this issue as it has been labeled with an integration (modbus) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `modbus` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign modbus` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


modbus documentation modbus source (message by IssueLinks)

janiversen commented 3 months ago

The restart service is deprecated and will be removed in 2024.11 (as the issue told you), currently it is still working.

It should have been removed from the documentation, that is a bug.

janiversen commented 3 months ago

The documentation is updated in:

https://github.com/home-assistant/home-assistant.io/pull/33609

Thanks for catching it.

Closing this as this is not a bug.

sagitt commented 3 months ago

The documentation is updated in:

https://github.com/home-assistant/home-assistant.io/pull/33609

Thanks for catching it.

Closing this as this is not a bug.

How i can restart communication?

sagitt commented 3 months ago

The documentation is updated in:

https://github.com/home-assistant/home-assistant.io/pull/33609

Thanks for catching it.

Closing this as this is not a bug.

Hi, what is the right method now to do this?

janiversen commented 3 months ago

This is not a support channel, the issue actually wrote what the replacement are.