Many many thanks for writing the addon for the Elero shutters.
The availabiltiy of this add-on now is the reason for trying out HASSIO.
I am also an absolute beginner and did not get it running up to now.
I’ve installed HASSIO via the HASSIO image.
As far as I understand pyserial is normally already available / installed there.
Copying the files into the folder is no big effort.
But I did not yet understand what / how to configure the configuration.yaml.
I also would be happy if you could give us a hint or example what to do in the configuration.yaml or a link, where something similar is explained.
I also want to say many many thanks. I know that this is quite a big effort.
I tried it out now and got in running.
Some things are not really working good up to now, but I am not sure if this is my mistake. I am an absolute HASS beginner.
This is my feedback (perhaps other users can also give feedback if it works on their systems in a better way).
I used your custom_components from 9th July 2018 for my tests.
When I click on the “Close” icon for one shutter, then it start moving down. But when I click on “Stop” after a few seconds (while it is still moving), the “Open” is greyed out (so I cannot open it again); I only can click on “Stop” or “Close”.
I created a group with 6 shutters. But when I click on “Close” for this complete group, randomly (?) only one shutter is closed.
The system normally supports four commands:
– open
– close
– movetilt (ventilation)
– moveintermediate (sunblind)
It would be great if it would be possible to use all of them.
So please don’t understand my feedback as criticism, but as feedback. I really appreciate the effort you spent!
Many thanks for your feedback! Unfortunately I know these issues. I am working on a new version to solve these issues. I will inform you here if it is ready for test.
Yes, I handle the state with wrong way.
Yes, I now the root case of it.
Yes, I would use too. My goal is handle all features of Elero.
Thanks a lot Istvan. I really appreciate your work here for us!
If there is anything what I could test for you, just let me know.
I also do not know how to use the tilt control in Home Assistant. I just can show you how it looks in FHEM - how I configured it there:
So because you have now this add-on for Home Assistant, I tried this out (and do not want to use FHEM in future any more).
Perhaps this could be done with the COVER.SET_COVER_POSITION. As far as I know the Elero system does not support to move a cover to a specific 0 … 100 position. So perhaps it would be possible to realize it something like:
position 0 = closed
position 25 = tilt
position 75 = sunblind
position 100 = opened
I just noticed one more issue. I don’t know if it’s just me or…?
Anyway I’m testing the controls on two shutters. After I send the command, when I check the stat, both shutters start alternating between open/closed (please see screenshot below) and the stick is flashing orange/green/range/green indefinitely. The only solution is to call cover.stop for each cover I used (or to reinsert the stick).
Both are actually closed on the screenshot above…but it just keeps switching closed/open etc.
Anything I’m doing wrong?
Log is full of following errors:
unknown response: b’’
Response to the 78 command is too long: b’\xaa\x05M\x00\x02\x02\x00\xaa\x05M\x00\x01\x02\x01’
Unhandled response: unknown response
EDIT: It just seems to loses track of the actual shutter status. After using a few shutters, open/close statuses don’t reflect real world situation.
Hi,
Have been looking at the code + Home Assistant developer checklist for creating a platform.
Would believe that the issues occurring with the current custom component is due to the fact that the Eller transmitter API is written directly in the component code. However I’m a noob regarding python…
All API specific code has to be part of a third party library hosted on PyPi. Home Assistant should only interact with objects and not make direct calls to the API.
bad
status = requests.get(url(’/status’))
good
from phue import Bridge
bridge = Bridge(…)
status = bridge.status()
I have the same problems like Igor. In my configuration I created 10 covers for the channels 1 to 10. In my logs I have additional issues like:
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
It looks like every cover access the serial port directly. Instead, a controller is needed that bundles communication with the serial port and manages a queue of requests and responses.
I also tested cover groups as described in István’s documentation. For this I have created a group with 5 shutters. If I want to close all the blinds of this group, this only happens with 3 of 5. This could probably be solved with a central queue for requests.
Since I’m not a Python specialist, unfortunately, I do not know how to implement it. But what I have done is to support the set_cover_position function so that intermediate and ventilation positions are supported.
The value of the position is used as follows:
0 = closed
25 = tilt position
50 = intermediate position
100 = open
I have no access rights to the Github repository, so I cannot push the changes. Therefore I am posting here the change you have to insert from line 318 after the stop_cover function in /custom_components/cover/elero.py.
def set_cover_position(self, position, **kwargs):
"""Move the cover to specific position."""
if position == 0 and self._state not in [STATE_CLOSED, STATE_CLOSING]:
"""Close"""
self._down()
self._start_watcher()
elif position == 25:
"""Tilt Position"""
self._tilt()
self._start_watcher()
elif position == 50:
"""Intermediate Position"""
self._intermediate()
self._start_watcher()
elif position == 100 and self._state not in [STATE_OPEN, STATE_OPENING]:
"""Open"""
self._up()
self._start_watcher()