Thanks for providing and sharing your solution! I got it to work with python from command line all is working fine, but I got in trouble with implementation to Hass.
I have configured it configuration.yaml with this code:
- platform: duofern
If I do not set “serial_port”, “config_file” & “code” I got the following error.
2018-05-26 12:28:40 ERROR (MainThread) [homeassistant.config] Invalid config for [cover.duofern]: string value is None for dictionary value @ data[‘code’]. Got None
string value is None for dictionary value @ data[‘config_file’]. Got None
string value is None for dictionary value @ data[‘serial_port’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/cover.duofern/
Even there is a Problem and I can’t see the cover in Home Assistant
Hopefully someone can help me.