New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switchbot Blindtilt template example gives error #27168
Comments
Hey there @bdraco, @Danielhiversen, @RenierM26, @murtas, @Eloston, @dsypniewski, mind taking a look at this feedback as it has been labeled with an integration ( Code owner commandsCode owners of
|
Are you able to provide your template and confirm you have changed |
Here is my template (I have seven blindtilts, this is the first one):
Also - this has created a new entity: cover.living_room_blind_1_2 and I'm assuming (my apologies, I'm new at this, and this is my first attempt at templates) that is the one I use, not the original entity. |
That sounds about right re: cover.living_room_blinds_1 does. cover_living_room_blinds_1_2 does not given the error message. I'm afraid I'm at a loss as to why you're getting the error. |
I appreciate you taking a look. Hopefully someone will chime in. |
Oddly, if I use them in a script or automation, I get an error "XXX_2 does not support this function" but if I make a card with them on it and individually click the up or down arrow for each, it works fine. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. |
This is still an active, not-fixed issue. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. |
This is still an active, not-fixed issue. |
Is this error related? I'm using the simple template described on the HA Switchbot integration page.
|
I think you get that error because the blind is closing UP instead of DOWN. But we'll never be sure, because this issue is still opened with no sign of responses or fixing. If I knew HOW to do it, I would. I do not. |
I will try tilting it manually and observing the state values. Perhaps depending on the orientation of the blind we need an alternative calculation to multiplying the state value by 2 (where it's assuming 0 to 50) Or could we suppress the error by getting it to consider any state value greater than 50 to be 100? |
I wish I knew. I never want mine to be over 50. 50 is fully opened, 0 is fully closed. I THOUGHT the template made it so that's what HA thinks - that 50 IS 100. I dunno. |
I wondered if perhaps the service call to open the blind triggers the motor and it ends up running a little too far, due to lag (Bluetooth/HA?) ending up at 59, resulting in the 118 reported by the template. I will do some testing.
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. |
No, this is not fixed yet. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. |
This is still active. There is no activity because nothing has changed. |
Feedback
When I do a simple copy/paste of the template into HA's Dev tools Template editor, I get: UndefinedError: 'None' has no attribute 'attributes'
When I change the example to using my own blind tilt name, I get: UndefinedError: 'position' is undefined
URL
https://www.home-assistant.io/integrations/switchbot/
Version
2023.4.6
Additional information
No response
The text was updated successfully, but these errors were encountered: