My guess is that they did not restart home assistant after creating the template sensors. This has to be done the first time a yaml integration s used. After that you can use the reload option (if there is one available).
I donāt have an answer to your question, but since you are new to Home Assistant, just to be clear on this: in your example you are mixing the legacy and the modern format of template sensors. The first sensor āH meter 2ā is legacy and the second sensor āT meter 2ā is modern.
It obviously is confusing to find a lot of example code in both formats, so keep an eye on that.
Both formats are (as far as I know) identical in functionality, but it might be that in an unforeseen future the legacy format will be abrogated (and it already is no longer recommended by the HA makers). So when you are starting from scratch it is best to stick with one format, preferably the modern format.
I confirm i tested the configuration.yaml file as shown above, and next I applied Development Tools ->YAML ā Restart
Also, I tried 2 more cases with only one of the declared sensors (one only legacy, another one only modern)
In all the cases, Settings ā System ā Logs did not show error for those sensors.
After Restart, none of the sensors showed up in Development Tools ā STATES.
It looks like that HA is not rendering the sensors in the configuraion.yaml file.
I confirm i tested the configuration.yaml file as shown above, and next I applied Development Tools ->YAML ā Restart
Also, I tried 2 more cases with only one of the declared sensors (one only legacy, another one only modern)
In all the cases, Settings ->.System ā Logs did not show error for those sensors.
After Restart, none of the sensors showed up in Development Tools ā STATES.
It looks like that HA is not rendering the sensors in the configuraion.yaml file.
I confirm I checked the log and I did not see any error related to sensors in configurqtion.yaml file.
This is the log for one of the cases i tried:
2023-08-24 13:39:01.046 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-24 13:39:01.048 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tuya_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-24 13:39:01.050 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hass_cozylife_local_pull which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-24 13:39:08.476 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:09.421 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:13.473 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:13.712 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:18.808 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:22.149 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:23.765 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:26.222 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for tuya_local doing blocking calls at custom_components/tuya_local/device.py, line 76: self._api = tinytuya.Device(dev_id, address, local_key)
2023-08-24 13:39:26.637 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2023-08-24 13:39:26.638 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2023-08-24 13:39:26.639 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2023-08-24 13:39:26.640 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2023-08-24 13:39:26.641 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2023-08-24 13:39:26.642 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2023-08-24 13:39:26.643 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2023-08-24 13:39:26.644 WARNING (MainThread) [homeassistant.setup] Setup of schedule is taking over 10 seconds.
2023-08-24 13:39:26.645 WARNING (MainThread) [homeassistant.setup] Setup of media_source is taking over 10 seconds.
2023-08-24 13:39:26.646 WARNING (MainThread) [homeassistant.setup] Setup of system_health is taking over 10 seconds.
2023-08-24 13:39:26.647 WARNING (MainThread) [homeassistant.setup] Setup of logbook is taking over 10 seconds.
2023-08-24 13:39:26.648 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
2023-08-24 13:39:26.649 WARNING (MainThread) [homeassistant.setup] Setup of application_credentials is taking over 10 seconds.