Hello -
I have recently started with HA and installed HACS and then Grocy.
Use case - I want to track chores around the home and update them using a telegram notification response and/or NFC tag. This means If I scan the NFS tag the chore should be considered done, same with the telegram bot’s actionable notification. I have come so far with half of it only but ended with the below issues.
My system info -
Version core-2022.4.7
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.9
Operating System Family Linux
Operating System Version 5.15.32
Issue1 :
After the restart of HA , I immediately started seeing these logs. gone through the documentation and I see no info on how to use this add-on now.
How should I proceed and what are my options?
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration grocy 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
2022-04-25 02:18:58 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
2022-04-25 02:19:03 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that uses str for device registry entry_type. This is deprecated and will stop working in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue.
Stack (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/src/homeassistant/homeassistant/__main__.py", line 203, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 191, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 119, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 629, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1890, in _run_once
handle._run()
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 501, in _async_add_entity
device = device_registry.async_get_or_create(**processed_dev_info) # type: ignore[arg-type]
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 369, in async_get_or_create
report( # type: ignore[unreachable]
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 74, in report
_LOGGER.warning(msg, stack_info=True)
Issue2:
I went ahead and proceed to create sensors to test, surprisingly after every restart sensors are behaving weird, for a while I see all the created sensors, and then after a restart one of the sensors shows unavailable.
Here is my sensor config (somehow the formatting isn’t looking good , but this is valid configuration, which I tested with “check configuration” )
---
platform: rest
name: water plants outside
resource: http://192.168.50.77:9283/api/chores/1
method: GET
value_template: "{{ (((as_timestamp(value_json.next_estimated_execution_time))-as_timestamp(now())) | int /60/1440) | round(0) }}"
json_attributes:
- last_tracked
- estimated_execution_time
headers:
Accept: application/json
Content-Type: application/json
GROCY-API-KEY: !secret grocy_api
unit_of_measurement: "days"
platform: rest
name: water plants inside
resource: http://192.168.50.77:9283/api/chores/2
method: GET
value_template: "{{ (((as_timestamp(value_json.next_estimated_execution_time))-as_timestamp(now())) | int /60/1440) | round(0) }}"
json_attributes:
- last_tracked
- estimated_execution_time
headers:
Accept: application/json
Content-Type: application/json
GROCY-API-KEY: !secret grocy_api
unit_of_measurement: "days"
and also I see few logs like this , I believe there are just warning and can ignore for now.
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "platform". Check lines 3 and 17
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "name". Check lines 4 and 18
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "resource". Check lines 5 and 19
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "method". Check lines 6 and 20
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "value_template". Check lines 7 and 21
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "json_attributes". Check lines 8 and 22
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "headers". Check lines 11 and 25
2022-04-25 02:18:58 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/integrations/../sensors/Grocy/grocy.yaml contains duplicate key "unit_of_measurement". Check lines 15 and 29
so, bottom line it seems either there is some issue with Grocy app with the latest version of OS or I am overlooking something here.
can someone help me on this issue and/or is there an easy alternate solution to achieve to track chores.