I upgraded to Home Assistant 2023.6.0 and my Brultech GreenEye no longer functions. I found this bug report:
opened 04:21AM - 08 Jun 23 UTC
integration: greeneye_monitor
### The problem
Greeneye integration stopped working after upgrading to 2023.6.… 0. The following error is found in the logs:
`Logger: greeneye.monitor
Source: /usr/local/lib/python3.11/site-packages/greeneye/monitor.py:431
First occurred: June 7, 2023 at 11:47:24 PM (39 occurrences)
Last logged: June 7, 2023 at 11:56:24 PM
Bad logger message: Exception while calling the listener! ((TypeError('Passing coroutines is forbidden, use tasks explicitly.'),))
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 429, in _consumer
await self._listener(message)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 522, in _handle_message
await self._add_monitor(serial_number, message.protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 536, in _add_monitor
await self._set_monitor_protocol(monitor, protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 546, in _set_monitor_protocol
await monitor._set_protocol(protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 292, in _set_protocol
await self._sync_with_settings(self._protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 322, in _sync_with_settings
await asyncio.wait(coroutines)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.`
### What version of Home Assistant Core has the issue?
core-2023.6.0
### What was the last working version of Home Assistant Core?
core-2023.5.3
### What type of installation are you running?
Home Assistant Supervised
### Integration causing the issue
greeneye_monitor
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/greeneye_monitor/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
`Logger: greeneye.monitor
Source: /usr/local/lib/python3.11/site-packages/greeneye/monitor.py:431
First occurred: June 7, 2023 at 11:47:24 PM (39 occurrences)
Last logged: June 7, 2023 at 11:56:24 PM
Bad logger message: Exception while calling the listener! ((TypeError('Passing coroutines is forbidden, use tasks explicitly.'),))
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 429, in _consumer
await self._listener(message)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 522, in _handle_message
await self._add_monitor(serial_number, message.protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 536, in _add_monitor
await self._set_monitor_protocol(monitor, protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 546, in _set_monitor_protocol
await monitor._set_protocol(protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 292, in _set_protocol
await self._sync_with_settings(self._protocol)
File "/usr/local/lib/python3.11/site-packages/greeneye/monitor.py", line 322, in _sync_with_settings
await asyncio.wait(coroutines)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.`
```
### Additional information
_No response_
Is it possible to determine what Home Assistant version will contain a fix for this bug?
Regards,
ultrajones
Can anyone please confirm if this issue has been addressed in Home Assistant 2023.6.1 or 2023.6.2?
It seems I have the same issue. I purposely waited to upgrade from 2023.5 until a couple of minor upgrades took place once going to 2023.6.3. I completed the upgrade about 7 days ago and GEM stopped working and since I have over a 6 GB database as a backup I knew it painfully slow to restore. I am currently restored back to Home Assistant: 2023.5.4, Supervisor: 2023.06.4, and Operating System: 10.3.
I am running HAOS on a PI 4 but in the ‘education’ process I have also created a VM version so I can do VM snapshots which can be restored in a minutes vs many hours. This will allow me to test until a solution comes along. I see there are about 20 HA installations with the GEM so I suspect, unfortunately, it will not be anytime soon.
Home Assistant 2023.7.0 was just released, and it doesn’t contain any fixes for the Brultech Greeneye issues reported with 2023.6.0.
I ended up installing the HACS version, and it’s working well.
After I replied to you yesterday, I started to review the link in your origin post and although I am not very well versed in the Github world, I found the HACS version like you pointed out in you last post. I was not opposed to gong the HACS route; it is just that I had no idea this solution was available and did not see any notes for the upgrades that the existing GEM solution would be broken.
I am fully updated and thanks for posting getting me going in the right direction!