extensions
extensions copied to clipboard
[Home Assistant] Error status code 400 when trying to change fan speed
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.
Steps To Reproduce
- Running macOS 14.6.1 and Raycast 1.82.3
- 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
- Use Raycast to navigate to "Fans" entities/devices
- 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
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 issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
@golflabel Interesting. I have no fan myself. Can you try the service call command to adjust the speed of your fan?
Sure, how do I do that?
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.
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.
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.
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 😊
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.