mealie-recipes / mealie-hacs Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Integration for Mealie
License: MIT License
Home Assistant Integration for Mealie
License: MIT License
Logger: homeassistant.components.switch
Source: custom_components/mealie/switch.py:43
Integration: Kontakt (documentation, issues)
First occurred: 21.46.47 (2 occurrences)
Last logged: 21.46.47
Error adding entities for domain switch with platform mealie
Error while setting up mealie platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 397, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 641, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 969, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/mealie/switch.py", line 43, in is_on
return self.coordinator.data.get("title", "") == "foo"
AttributeError: 'NoneType' object has no attribute 'get'
-->
Add your logs here.
after setup 3 entities is added but not avalible
Add your logs here.
Logger: homeassistant
Source: custom_components/mealie/binary_sensor.py:33
Integration: Mealie ([documentation](https://github.com/mealie-recipes/mealie-hacs), [issues](https://github.com/mealie-recipes/mealie-hacs/issues))
First occurred: 21.47.16 (1 occurrences)
Last logged: 21.47.16
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 339, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 209, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/mealie/binary_sensor.py", line 33, in is_on
return self.coordinator.data.get("title", "") == "foo"
AttributeError: 'NoneType' object has no attribute 'get'
Home Asssistant version
Home Assistant 2022.7.5 Supervisor 2022.07.0 Operating System 8.3 Brugerfladeversion: 20220707.1 - latest
Version is 0.1.2
Done through graphic interface, deleted and readded everytime I retried due to lack of user/pass/ip:port settings in config
I add the integration through HACS,
Mealie is running as an add-on to HA (on a rpi4)
Mealie is accessible through internal ip like this: http://192.168.0.183:9925
username and password works as expected.
When I add the integration I enter a username/pass (verified that these work) and the integration confirms config is saved successfully.
Then it immediately tells me
"Retrying setup: None"
And nothing happens.
Based on the info in the log I have ensured that a valid mealplan exists for today.
Logs
This error originated from a custom integration.
Logger: custom_components.mealie
Source: helpers/update_coordinator.py:182
Integration: Mealie (documentation, issues)
First occurred: August 9, 2022 at 10:26:55 PM (611 occurrences)
Last logged: 12:18:03 PM
Error fetching mealie data:
followed by
This error originated from a custom integration.
Logger: custom_components.mealie
Source: custom_components/mealie/__init__.py:111
Integration: Mealie (documentation, issues)
First occurred: 12:06:38 PM (20 occurrences)
Last logged: 12:18:03 PM
0
Traceback (most recent call last):
File "/config/custom_components/mealie/__init__.py", line 111, in _async_update_data
data['groups/mealplans/today'][idx]['recipe'].update(
KeyError: 0
Hi @hay-kot,
I installed this plugin and afterwards I realized it's currently not offering any functionality is just the HA plugin stub.
What I'm most curious about: What could be the general idea/gist behind a HA integration? Just wondering on potential use-cases and HA entities.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.