@BKifft Thank you very much for your reply!
Your integration is working. But I do not see how it is possible to configure it into HA to make it flash for 500 or 700ms
The integration sebastianfs82 does not seem to work and with that integration it should be possible.
I see the following in the logs:
Logger: homeassistant.util.loop
Bron: util/loop.py:77
Eerst voorgekomen: 22:54:50 (1 gebeurtenis)
Laatst gelogd: 22:54:50
Detected blocking call to import_module with args (‘custom_components.waveshare_relay.sensor’,) in /usr/src/homeassistant/homeassistant/loader.py, line 1282: return importlib.import_module(f"{self.pkg_path}.{platform_name}“) inside the event loop; This is causing stability issues. Please create a bug report at GitHub · Where software is built For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs Traceback (most recent call last): File “”, line 198, in _run_module_as_main File “”, line 88, in _run_code File “/usr/src/homeassistant/homeassistant/main.py”, line 227, in sys.exit(main()) File “/usr/src/homeassistant/homeassistant/main.py”, line 213, in main exit_code = runner.run(runtime_conf) File “/usr/src/homeassistant/homeassistant/runner.py”, line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File “/usr/local/lib/python3.13/asyncio/base_events.py”, line 706, in run_until_complete self.run_forever() File “/usr/local/lib/python3.13/asyncio/base_events.py”, line 677, in run_forever self._run_once() File “/usr/local/lib/python3.13/asyncio/base_events.py”, line 2034, in _run_once handle._run() File “/usr/local/lib/python3.13/asyncio/events.py”, line 89, in _run self._context.run(self._callback, *self._args) File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 2568, in async_forward_entry_setups await integration.async_get_platforms(platforms) File “/usr/src/homeassistant/homeassistant/loader.py”, line 1151, in async_get_platforms platforms.update(self._load_platforms(platform_names)) File “/usr/src/homeassistant/homeassistant/loader.py”, line 1076, in _load_platforms platform_name: self._load_platform(platform_name) File “/usr/src/homeassistant/homeassistant/loader.py”, line 1250, in _load_platform cache[full_name] = self._import_platform(platform_name) File “/usr/src/homeassistant/homeassistant/loader.py”, line 1282, in _import_platform return importlib.import_module(f”{self.pkg_path}.{platform_name}")
Any idea what is wrong?
Or @BKifft can you tell me how it possible with your integration how to make the relay flash on for 500 of 700ms please?