extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Home Assistant] Error status code 400 when trying to change fan speed

Open golflabel opened this issue 1 year ago • 7 comments

Extension

https://www.raycast.com/tonka3000/homeassistant

Raycast Version

1.81.3

macOS Version

14.6.1

Description

Whenever I navigate to any fans in my Home Assistant setup with Raycast and try to adjust their speed, I get an error code 400 and the speed doesn't change. I am able to toggle the fan on/off, however, just fine using the return key or turn the fans on or off using the ⌘+O and ⌘+F shortcuts. error status code 400 when trying to change fan speed

Steps To Reproduce

  1. Running macOS 14.6.1 and Raycast 1.82.3
  2. Running Home Assistant on an Intel NUC with the following versions: Core 2024.7.3, Supervisor 2024.08.0, Operating System 12.4, Frontend 20240710.0
  3. Use Raycast to navigate to "Fans" entities/devices
  4. Attempt to change speed of any individual fan (toggling and turning on/off works just fine, it's only speed changes that result in the error status code 400)

Current Behaviour

No response

Expected Behaviour

No response

golflabel avatar Sep 06 '24 20:09 golflabel

Thank you for opening this issue!

🔔 @tonka3000 @altrdev @rspeicher @amuelli @xilopaint you might want to have a look.

💡 Author and Contributors commands

The author and contributors of tonka3000/homeassistant can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Sep 06 '24 20:09 raycastbot

@golflabel Interesting. I have no fan myself. Can you try the service call command to adjust the speed of your fan?

tonka3000 avatar Sep 06 '24 20:09 tonka3000

Sure, how do I do that?

golflabel avatar Sep 06 '24 20:09 golflabel

There is a command call Services. Start it. Then you can see basically the same as on the developer tools page/actions from home assistant itself.

There are a couple of fan commands there which you can try out like fan.turn_on or fan.percentage. Fill out the values and check if one of them works.

Currently the fan.turn_on command is used in the background of the raycast command, maybe we need to change it to a different one.

tonka3000 avatar Sep 06 '24 20:09 tonka3000

Ah gotcha! I just tried that and it works great. I've got three-speed fans that I'm using it with and tried 33%, 66%, and 100% and all worked as expected when using the Services command in Raycast.

golflabel avatar Sep 07 '24 00:09 golflabel

That is good to hear. You can create a Quicklink for now if you only use them with one fan.

What service call/action did you use exactly? fan.turn_on, fan.percentage or a different one.

Would be good to have the yaml verison of the call. I can put it behind the current action in the Raycast command to fix the issue.

tonka3000 avatar Sep 07 '24 10:09 tonka3000

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot avatar Oct 27 '24 11:10 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

raycastbot avatar Nov 06 '24 11:11 raycastbot