strixx76 / mold_risk_index Goto Github PK
View Code? Open in Web Editor NEWCalculate the level of risk of mold growth in a crawl space.
License: MIT License
Calculate the level of risk of mold growth in a crawl space.
License: MIT License
Is it possible to use multiple instances for multiple pairs of sensors?
(e. g. basement and attic)
thx.
Can documentation be updated with differences from HA mold indicator integration?
https://www.home-assistant.io/integrations/mold_indicator/
Would be nice to have the values as state attributes on MoldRiskBaseSensor for temperature and humidity for easy access.
Hi,
I found your integration by accident and I find it useful already.
I would like to extend it, but before I bluntly fork it I wanted to run it past you.
I'm using your integration for bathrooms - and I started considering to use the indicated risk for triggering the dehumidifiers / forced ventilation. However to my mind there is one important thing missing. As you said - you used graphs from craw space graphs. In bathrooms it's often that air temp will be greatly higher than wall / window - which during winter will have greatly different temp and increase local humidity.
I've considered extending your integration by:
This could be enabled by choosing "advanced operation" and of course I would code that my self, but I would prefer this to be part of your integration rather than pointless duplication.
Hello and thank you for this integration work 💪 I'll try it out - after seeing it on the BeardedTinker channel on youtube.
Just wanted to ask if the image plot.png
- describes areas on the left, bottom and right - that are much too cold or much too hot or too dry for condensation/mold to appear?
If so, then the correct terms should be "Too cold", "Too dry" and "Too hot" instead of "To".
Thank you!
Hi,
I was trying this custom component, suggested from a discussion I found on same argument, but using values coming from Broadlink sensor I’ve risk index always set to 0.
here’s what I have now:
Broadlink temperature sensor reports 18.6 *C
Broadlink humidity sensor reports 58.16 %
calculated risk index 0
But it’s zero also when temperature raise to 20C and humidity is higher than 75% .
Thanks.
Although is handling well unavailailbility of entities attached to it, since last version of HA, logs are getting filled with logs (below), reason states are reported as unknown
which is not valid type (string) while the expectation is for a numeric / None,
I change the code locally and it solve that issue, but essentially, need to use whatever reported from the mold risk calculator even if it is None, HA will translate it to unknown by itself.
06/10/2023 2:20:12 PM
During handling of the above exception, another exception occurred:
06/10/2023 2:20:12 PM
06/10/2023 2:20:12 PM
Traceback (most recent call last):
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 581, in state
06/10/2023 2:20:12 PM
numerical_value = int(value)
06/10/2023 2:20:12 PM
^^^^^^^^^^
06/10/2023 2:20:12 PM
ValueError: invalid literal for int() with base 10: 'unknown'
06/10/2023 2:20:12 PM
06/10/2023 2:20:12 PM
The above exception was the direct cause of the following exception:
06/10/2023 2:20:12 PM
06/10/2023 2:20:12 PM
Traceback (most recent call last):
06/10/2023 2:20:12 PM
File "/usr/local/lib/python3.11/logging/handlers.py", line 1498, in emit
06/10/2023 2:20:12 PM
self.enqueue(self.prepare(record))
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/util/logging.py", line 44, in prepare
06/10/2023 2:20:12 PM
record = super().prepare(record)
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/local/lib/python3.11/logging/handlers.py", line 1480, in prepare
06/10/2023 2:20:12 PM
msg = self.format(record)
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/local/lib/python3.11/logging/__init__.py", line 953, in format
06/10/2023 2:20:12 PM
return fmt.format(record)
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/local/lib/python3.11/logging/__init__.py", line 687, in format
06/10/2023 2:20:12 PM
record.message = record.getMessage()
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/local/lib/python3.11/logging/__init__.py", line 377, in getMessage
06/10/2023 2:20:12 PM
msg = msg % self.args
06/10/2023 2:20:12 PM
~~~~^~~~~~~~~~~
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/core.py", line 253, in __repr__
06/10/2023 2:20:12 PM
return f"<Job {self.name} {self.job_type} {self.target}>"
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 677, in __repr__
06/10/2023 2:20:12 PM
return super().__repr__()
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1026, in __repr__
06/10/2023 2:20:12 PM
return f"<entity {self.entity_id}={self._stringify_state(self.available)}>"
06/10/2023 2:20:12 PM
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
06/10/2023 2:20:12 PM
if (state := self.state) is None:
06/10/2023 2:20:12 PM
^^^^^^^^^^
06/10/2023 2:20:12 PM
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 585, in state
06/10/2023 2:20:12 PM
raise ValueError(
06/10/2023 2:20:12 PM
ValueError: Sensor sensor.roni_s_room_mold_risk_index_risk_index has device class 'None', state class 'measurement' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
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.