I try to add the Zemismart AM15 roller blinds (With RF to wifi converter)
The up & down movement work flawless.
Percentage isn't working anyway. It is exposed when I look at it with Tinytuya
In LocalTuya version 3.2.2 the timer up and down is working, but when I want to set it at 50% it sometimes stops at 75% or something. It doesn't matter if it goes up and down.
The release I now use is "master".
When I configured the 'timer', I get the following error in the log:
failed to call service cover/set.cover.position unsupported operand type(s) for -: 'float' and 'str'
2021-08-08 21:25:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139703228107696] unsupported operand type(s) for -: 'float' and 'str'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 856, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/config/custom_components/localtuya/cover.py", line 130, in async_set_cover_position
posdiff = abs(newpos - currpos)
TypeError: unsupported operand type(s) for -: 'float' and 'str'
The problem
I try to add the Zemismart AM15 roller blinds (With RF to wifi converter) The up & down movement work flawless. Percentage isn't working anyway. It is exposed when I look at it with Tinytuya
In LocalTuya version 3.2.2 the timer up and down is working, but when I want to set it at 50% it sometimes stops at 75% or something. It doesn't matter if it goes up and down.
The release I now use is "master". When I configured the 'timer', I get the following error in the log:
failed to call service cover/set.cover.position unsupported operand type(s) for -: 'float' and 'str'
Environment
Steps to reproduce
Configuration
configuration.yaml
orconfig_flow
https://gyazo.com/64f9213170d0f835245379e5e932188b
DP dump
Provide Home Assistant taceback/logs
Additional information