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
73.57k stars 30.74k forks source link

2024.9.x Hive Integration Cannot Turn On Hot Water #125481

Open bushcraftytim opened 2 months ago

bushcraftytim commented 2 months ago

The problem

If I try to turn on the hot water it says the switch entity doesn’t exist and the hot water cannot be turned on. This failed on 2024.9.0 and 2024.9.1. The other aspects of the heating work fine. Problem persists after an integration removal and re-addition.

What version of Home Assistant Core has the issue?

2024.9.x

What was the last working version of Home Assistant Core?

Any previous to 2024.9.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Hive

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `hive` 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 hive` 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)


hive documentation hive source (message by IssueLinks)

BeeGee88 commented 1 month ago

I have the same issue with my existing automations. I have tried creating new automations and changing the Hive settings with no luck. The strange thing is that it is possible switch the immersion on and off directly through the Overview, but not with an Automation.

BeeGee88 commented 1 month ago

I have just run a test: see attached screenshot Hive immersion problem

bushcraftytim commented 1 month ago

BeeGee88 has exactly the issue I have.

bushcraftytim commented 1 month ago

The error I have is the same as above: Triggering the water.heter.thermostat within hive generates the error: "Failed to perform the action water_heater/turn_on. Entity water_heater.hall_thermostat does not support this service". Reverting to 2024.8.3 allows the operation to run. If I simply call the service I get the same error.

bushcraftytim commented 1 month ago

@Rendili or @KJonline are there any planned changes for this?

bushcraftytim commented 1 month ago

Tried again just to collect more logging. This is what is being reported in full.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245 
integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 15:48:29 (2 occurrences) 
Last logged: 15:50:24 [140426593200464] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 978, in entity_service_call raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Entity water_heater.hall_thermostat does not support this service.

BeeGee88 commented 1 month ago

Thanks for keeping on the case. Unfortunately I cannot add anything further - so just hope there will be a fix forthcoming!

bushcraftytim commented 1 month ago

Thanks for keeping on the case. Unfortunately I cannot add anything further - so just hope there will be a fix forthcoming!

Fingers crossed for 2024.10....

bushcraftytim commented 1 month ago

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater
sequence:
  - action: water_heater.set_operation_mode
    data:
      operation_mode: "on"
    target:
      entity_id: water_heater.hall_thermostat
description: ""
icon: mdi:water-boiler

@BeeGee88 if you need any help implementing this let me know. Just change the name of the entity as needed. A turn off script is the same but change "on" to "off". I also have this script that acts as a toggle - turning on and off as needed:

alias: Toggle Water Heater
sequence:
  - choose:
      - conditions:
          - condition: state
            entity_id: water_heater.hall_thermostat
            attribute: operation_mode
            state: "off"
        sequence:
          - action: water_heater.set_operation_mode
            data:
              operation_mode: "on"
            target:
              entity_id: water_heater.hall_thermostat
      - conditions:
          - condition: state
            entity_id: water_heater.hall_thermostat
            attribute: operation_mode
            state: "on"
        sequence:
          - action: water_heater.set_operation_mode
            data:
              operation_mode: "off"
            target:
              entity_id: water_heater.hall_thermostat
description: ""
icon: mdi:water-boiler

You will again, need to alter the entity ids. Give me a shout if you need any help.

BeeGee88 commented 1 month ago

I am a newcomer and although a programmer 60 years ago I have not yet learnt YANDL or Python, so yes please help. I have attached what I think needs changing to a basic Action (I actually use a more sophisticated one, but if you show me how to change this basic one I can then try to update the more sophisticated on)

Many thanks

Brian

On 2 Oct 2024, at 19:44, bushcraftytim @.***> wrote:

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater sequence:

alias: Toggle Water Heater sequence:

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2389447213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM7Y5O4Z7JHUZN6HJJTZZQ5JFAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2DOMRRGM. You are receiving this because you were mentioned.

bushcraftytim commented 1 month ago

Sadly it doesn’t appear that your attachment will be available on the message thread and isn’t in the email version.

On 3 Oct 2024, at 14:53, BeeGee88 @.***> wrote:

I am a newcomer and although a programmer 60 years ago I have not yet learnt YANDL or Python, so yes please help. I have attached what I think needs changing to a basic Action (I actually use a more sophisticated one, but if you show me how to change this basic one I can then try to update the more sophisticated on)

Many thanks

Brian

On 2 Oct 2024, at 19:44, bushcraftytim @.***> wrote:

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater sequence:

  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler @BeeGee88 https://github.com/BeeGee88 if you need any help implementing this let me know. Just change the name of the entity as needed. A turn off script is the same but change "on" to "off". I also have this script that acts as a toggle - turning on and off as needed:

alias: Toggle Water Heater sequence:

  • choose:
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "off" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "on" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "off" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler You will again, need to alter the entity ids. Give me a shout if you need any help.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2389447213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM7Y5O4Z7JHUZN6HJJTZZQ5JFAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2DOMRRGM. You are receiving this because you were mentioned.

 — Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391486422, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC75LQRE2OC2CIJVQEDZZVD6DAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGQ4DMNBSGI. You are receiving this because you authored the thread.

BeeGee88 commented 1 month ago

How about this?

id: '1717766857814' alias: Immersion On description: '' trigger:

On 3 Oct 2024, at 15:50, bushcraftytim @.***> wrote:

Sadly it doesn’t appear that your attachment will be available on the message thread and isn’t in the email version.

On 3 Oct 2024, at 14:53, BeeGee88 @.***> wrote:

I am a newcomer and although a programmer 60 years ago I have not yet learnt YANDL or Python, so yes please help. I have attached what I think needs changing to a basic Action (I actually use a more sophisticated one, but if you show me how to change this basic one I can then try to update the more sophisticated on)

Many thanks

Brian

On 2 Oct 2024, at 19:44, bushcraftytim @.***> wrote:

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater sequence:

  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler @BeeGee88 https://github.com/BeeGee88 if you need any help implementing this let me know. Just change the name of the entity as needed. A turn off script is the same but change "on" to "off". I also have this script that acts as a toggle - turning on and off as needed:

alias: Toggle Water Heater sequence:

  • choose:
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "off" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "on" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "off" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler You will again, need to alter the entity ids. Give me a shout if you need any help.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2389447213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM7Y5O4Z7JHUZN6HJJTZZQ5JFAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2DOMRRGM. You are receiving this because you were mentioned.

 — Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391486422, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC75LQRE2OC2CIJVQEDZZVD6DAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGQ4DMNBSGI. You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391622308, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM6THOT6HRHDJWE3RTDZZVKSHAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGYZDEMZQHA. You are receiving this because you were mentioned.

bushcraftytim commented 1 month ago

Yep - see what you need - I can do it - Just a tad busy atm - can you wait until the weekend?

On 3 Oct 2024, at 17:31, BeeGee88 @.***> wrote:

How about this?

id: '1717766857814' alias: Immersion On description: '' trigger:

  • platform: time at: input_datetime.house_immersion_on condition: [] action:
  • device_id: 94b46e57fe1a0d7216b1fb9e5fb6bd98 domain: water_heater entity_id: 498f86ab0117f5ab1baecacee8a50a1a type: turn_on
  • delay: hours: 3 minutes: 0 seconds: 0 milliseconds: 0
  • type: turn_off device_id: 94b46e57fe1a0d7216b1fb9e5fb6bd98 entity_id: f9c3e6065fcfbf475a706498efb1233c domain: switch mode: single

On 3 Oct 2024, at 15:50, bushcraftytim @.***> wrote:

Sadly it doesn’t appear that your attachment will be available on the message thread and isn’t in the email version.

On 3 Oct 2024, at 14:53, BeeGee88 @.***> wrote:

I am a newcomer and although a programmer 60 years ago I have not yet learnt YANDL or Python, so yes please help. I have attached what I think needs changing to a basic Action (I actually use a more sophisticated one, but if you show me how to change this basic one I can then try to update the more sophisticated on)

Many thanks

Brian

On 2 Oct 2024, at 19:44, bushcraftytim @.***> wrote:

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater sequence:

  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler @BeeGee88 https://github.com/BeeGee88 if you need any help implementing this let me know. Just change the name of the entity as needed. A turn off script is the same but change "on" to "off". I also have this script that acts as a toggle - turning on and off as needed:

alias: Toggle Water Heater sequence:

  • choose:
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "off" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "on" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "off" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler You will again, need to alter the entity ids. Give me a shout if you need any help.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2389447213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM7Y5O4Z7JHUZN6HJJTZZQ5JFAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2DOMRRGM. You are receiving this because you were mentioned.

 — Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391486422, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC75LQRE2OC2CIJVQEDZZVD6DAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGQ4DMNBSGI. You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391622308, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM6THOT6HRHDJWE3RTDZZVKSHAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGYZDEMZQHA. You are receiving this because you were mentioned.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391844789, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC6ZTA3C46XX7YA67TLZZVWO5AVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRHA2DINZYHE. You are receiving this because you authored the thread.

BeeGee88 commented 1 month ago

Certainly I can wait - just at your convenience. Thanks

On 3 Oct 2024, at 18:52, bushcraftytim @.***> wrote:

Yep - see what you need - I can do it - Just a tad busy atm - can you wait until the weekend?

On 3 Oct 2024, at 17:31, BeeGee88 @.***> wrote:

How about this?

id: '1717766857814' alias: Immersion On description: '' trigger:

  • platform: time at: input_datetime.house_immersion_on condition: [] action:
  • device_id: 94b46e57fe1a0d7216b1fb9e5fb6bd98 domain: water_heater entity_id: 498f86ab0117f5ab1baecacee8a50a1a type: turn_on
  • delay: hours: 3 minutes: 0 seconds: 0 milliseconds: 0
  • type: turn_off device_id: 94b46e57fe1a0d7216b1fb9e5fb6bd98 entity_id: f9c3e6065fcfbf475a706498efb1233c domain: switch mode: single

On 3 Oct 2024, at 15:50, bushcraftytim @.***> wrote:

Sadly it doesn’t appear that your attachment will be available on the message thread and isn’t in the email version.

On 3 Oct 2024, at 14:53, BeeGee88 @.***> wrote:

I am a newcomer and although a programmer 60 years ago I have not yet learnt YANDL or Python, so yes please help. I have attached what I think needs changing to a basic Action (I actually use a more sophisticated one, but if you show me how to change this basic one I can then try to update the more sophisticated on)

Many thanks

Brian

On 2 Oct 2024, at 19:44, bushcraftytim @.***> wrote:

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater sequence:

  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler @BeeGee88 https://github.com/BeeGee88 if you need any help implementing this let me know. Just change the name of the entity as needed. A turn off script is the same but change "on" to "off". I also have this script that acts as a toggle - turning on and off as needed:

alias: Toggle Water Heater sequence:

  • choose:
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "off" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "on" target: entity_id: water_heater.hall_thermostat
  • conditions:
  • condition: state entity_id: water_heater.hall_thermostat attribute: operation_mode state: "on" sequence:
  • action: water_heater.set_operation_mode data: operation_mode: "off" target: entity_id: water_heater.hall_thermostat description: "" icon: mdi:water-boiler You will again, need to alter the entity ids. Give me a shout if you need any help.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2389447213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM7Y5O4Z7JHUZN6HJJTZZQ5JFAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGQ2DOMRRGM. You are receiving this because you were mentioned.

 — Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391486422, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC75LQRE2OC2CIJVQEDZZVD6DAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGQ4DMNBSGI. You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391622308, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM6THOT6HRHDJWE3RTDZZVKSHAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGYZDEMZQHA. You are receiving this because you were mentioned.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391844789, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3JIFC6ZTA3C46XX7YA67TLZZVWO5AVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRHA2DINZYHE. You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/125481#issuecomment-2391993874, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJRBUM2HUVYT4IC2KLMAHN3ZZV75XAVCNFSM6AAAAABN2MUN5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRHE4TGOBXGQ. You are receiving this because you were mentioned.

Bezzaee commented 1 month ago

Ok - you can operate this hot water by using operations and not just turn on. The script I use to turn on is as follows:

alias: Turn on Gas Water Heater
sequence:
  - action: water_heater.set_operation_mode
    data:
      operation_mode: "on"
    target:
      entity_id: water_heater.hall_thermostat
description: ""
icon: mdi:water-boiler

Thanks - this approach works in 2024.10.1, it didn't work in prior version

jarrah31 commented 2 weeks ago

I have the same error with the Honeywell Total Connect integration in 2024.10.3