sq3tle / prusa_mini_home_assistant Goto Github PK
View Code? Open in Web Editor NEWPrusa mini integration for home assistant
License: MIT License
Prusa mini integration for home assistant
License: MIT License
My workaround was editing the customize.yaml:
sensor.prusa_mini_temp_nozzle:
friendly_name: "Nozzle Temperature"
unit_of_measurement: "ºC"
sensor.prusa_mini_temp_bed:
friendly_name: "Bed Temperature"
unit_of_measurement: "ºC"
sensor.prusa_mini_pos_z_mm:
friendly_name: "Current Z"
unit_of_measurement: "mm"
sensor.prusa_mini_progress:
friendly_name: "Print Progress"
unit_of_measurement: "%"
Describe the bug
I'm getting an error when I try to add "https://github.com/sq3tle/prusa_mini_home_assistant" into Custom repositories in Home assistant
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected to have the add on available to install
Server:
Error from system log
20-11-23 09:03:17 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/sq3tle/prusa_mini_home_assistant repository
20-11-23 09:03:18 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/fdae3219/repository.json: [Errno 2] No such file or directory: '/data/addons/git/fdae3219/repository.json'
20-11-23 09:03:18 ERROR (MainThread) [supervisor.store] https://github.com/sq3tle/prusa_mini_home_assistant is not a valid add-on repository.
20-11-23 09:03:18 INFO (MainThread) [supervisor.store.git] Removing custom add-on repository https://github.com/sq3tle/prusa_mini_home_assistant
Is your feature request related to a problem? Please describe.
I am getting an error on Home assistant (core-2021.4.3, supervisor-2021.03.9)
"No 'version' key in the manifest file for custom integration 'prusa_connect'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'prusa_connect'"
Describe the solution you'd like
I would like the error to be solved before "Home Assistant 2021.6" Since I like the use this addon
Additional context
The error code said to report this to the maintainer of 'prusa_connect'
Describe the bug
Starting with HA 2022.4 release, log entries are listed on HA startup stating that a couple of the temperature sensors are not inheriting SensorEntity, which will be unsupported starting in HA 2022.7.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No warnings.
Screenshots
Server:
Additional context
Logs:
Temperature sensor sensor.prusa_mini_temp_nozzle (<class 'custom_components.prusa_connect.sensor.PrusaSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
Temperature sensor sensor.prusa_mini_temp_bed (<class 'custom_components.prusa_connect.sensor.PrusaSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
Describe the bug
Integration not starting up because of KeyError
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Integration starts up without error
Server:
Error Log:
2020-11-29 01:00:22 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up prusa_connect platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 207, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/config/custom_components/prusa_connect/sensor.py", line 67, in state
return self.inst.attributes[self.v_name]
KeyError: 'time_tts'
Describe the bug
I tried to install this integration as described in the readme, but upon restarting HA from the Web UI I get the following error:
[548091781072] The system cannot restart because the configuration is not valid: Invalid config for [sensor.prusa_connect]: value must be one of ['material', 'pos_z_mm', 'progress', 'project_name', 'status', 'temp_bed', 'temp_nozzle', 'time_est', 'time_tts'] @ data['monitored_conditions'][9]. Got 'print_dur'. (See ?, line ?).
Removing print_dur
from the config solves the error. I see in the commit that this was only added lately, so is there a problem with my HACS not installing the latest version or was this not yet released?
To Reproduce
Expected behavior
HA restarts and picks up the new integration
Screenshots
If applicable, add screenshots to help explain your problem.
Server:
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.