Skip to content

Only 2 unuseful entities #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
paolofonti opened this issue Apr 1, 2025 · 8 comments
Open

Only 2 unuseful entities #14

paolofonti opened this issue Apr 1, 2025 · 8 comments

Comments

@paolofonti
Copy link

Hello
I've installed the integration 4heat but only two unuseful entities are available. Could someone help me? Thanks in advance

Image
Image

@paolofonti
Copy link
Author

Hello! No one can help me?

@Stanojoski
Copy link

Stanojoski commented Apr 6, 2025

Hello @paolofonti

I have used this integration for a long time, and I have more sensors in the integration. Is your stove connected to a controller, and how is that controller connected to your network?

As you can see it is currently in use.

This is how my integration looks.

Image

@phendrickx
Copy link

phendrickx commented Apr 8, 2025

Same problem with me, is due to that when you create the integration now from scratch that it is using some deprecated functions of HA during setup that it needs to create those sensors.
With Stanojoski those sensors already exist from before 2025.1.

Detected code that calls async_forward_entry_setup for integration 4heat with title: Pellet-heat and entry_id: 01JRAKFSW5PNW400Q8M0PXK0RW, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1, please report this issue
Stack (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 712, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 683, in run_forever
self._run_once()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2040, 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 2644, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1339, in _report_non_awaited_platform_forwards
report_usage(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 204, in report_usage
_report_usage_partial()
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 243, in _report_usage
_report_usage_no_integration(what, core_behavior, breaks_in_ha_version, err)
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 380, in _report_usage_no_integration
_LOGGER.warning(msg, stack_info=True)

@paolofonti
Copy link
Author

Ciao@paolofonti

Utilizzo questa integrazione da molto tempo e ho integrato altri sensori. La tua stufa è collegata a un controller e come è collegato quest'ultimo alla tua rete?

Come potete vedere, è attualmente in uso.

Ecco come appare la mia integrazione.

Image

Ciao
la stufa è collegata in wifi al router Fritzbox. Tutti gli altri device della rete sono ok

@paolofonti
Copy link
Author

Ho lo stesso problema, perché quando si crea l'integrazione da zero, durante la configurazione vengono utilizzate alcune funzioni obsolete di HA, che devono essere create per quei sensori. Con Stanojoski, quei sensori esistevano già da prima della versione 2025.1.

È stato rilevato codice che richiama async_forward_entry_setup per l'integrazione di 4heat con titolo: Pellet-heat e entry_id: 01JRAKFSW5PNW400Q8M0PXK0RW, durante la configurazione senza attendere async_forward_entry_setup, il che può causare il rilascio del blocco di configurazione prima del completamento della configurazione. Questo smetterà di funzionare in Home Assistant 2025.1, segnala questo problema Stack (ultima chiamata più recente): File "", riga 198, in _run_module_as_main File "", riga 88, in _run_code File "/usr/src/homeassistant/homeassistant/ main .py", riga 227, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/ main .py", riga 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", riga 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", riga 712, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", riga 683, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", riga 2040, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", riga 89, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", riga 2644, in async_forward_entry_setup _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup") File "/usr/src/homeassistant/homeassistant/config_entries.py", riga 1339, in _report_non_awaited_platform_forwards report_usage( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", riga 204, in report_usage _report_usage_partial() File "/usr/src/homeassistant/homeassistant/helpers/frame.py", riga 243, in _report_usage _report_usage_no_integration(what, core_behavior, breaks_in_ha_version, err) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", riga 380, in _report_usage_no_integration _LOGGER.warning(msg, stack_info=True)

Ciao e grazie per la risposta.
Scusa ma non capisco cosa dovrei fare. Il problema esiste anche con la release 2025.1

@Stanojoski
Copy link

Stanojoski commented Apr 13, 2025

I had also problems with the integration. At that time i found a solution. Please check these links
The problem
#8
The solution
master...carloda:homeassistant-4heat:patch-1

@phendrickx
Copy link

I had also problems with the integration. At that time i found a solution. Please check these links The problem #8 The solution master...carloda:homeassistant-4heat:patch-1

Have looked at it, this is not the issue at this moment. We are installing from scratch without any already existing entities. Maybe your issue comes up after our is workedaround. ;)

@phendrickx
Copy link

phendrickx commented Apr 15, 2025

At packetcapture of the integration towards 4heat-module gives this:

Image

Would it be possible local-API is closed?

Update2: My stove uses different query-code, as also the answers are different. It queries with the following code:
["2WL","0"]["2WL","28","1020010014000002135500150800000002c800","0c8101310001100000010001004300","12ffff0014000000000100000000000000","12fff70000000000000101000000000000","12ffe2006e000000000100000000000000","12fffa0015000000000100000000000000","12ffed0000000000000100000000000000","0e016c00060001000600000001016c0007","0e023f00010001000600000001023f0007","12ffe40000000000000100000000000000","12fffb0bb8000000000100000000000000","0e016b00010001000600000001016b0007","12fffd0000000000000100000000000000","12fff80000000000000100000000000000","12fff60000000000000100000000000000","12fffc0015000000000100000000000000","12fff90000000000000100000000000000","0e01800000000000020000000101800000","0e017d00040000000c00000001017d0000","12ffdf0000000000000100000000000000","12ffde0000000000000100000000000000","12ffd60000000000000100000000000000","0e017e00000000003600000001017e0000","12ffd80000000000000100000000000000","12005a00fa006401900001000100000000","0e00c70043002800500000000100c70000","0e00e10041003200510000000100e10000","1200580000006401900001000100000000"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants