adrianbyv / home-assistant-custom-components-switch-humidifier Goto Github PK
View Code? Open in Web Editor NEWHome Assistant custom component Switch Humidifier Platform
License: MIT License
Home Assistant custom component Switch Humidifier Platform
License: MIT License
Hello, I can't turn on or off the switch via humidifier entity. There is the log if home assistant:
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/switch_humidifier/humidifier.py", line 208, in _state_changed
if not new_state is None and not new_state.state == 'unknown' and not new_state.state == 'unavailable' and not old_state.state == new_state.state:
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'state'
There is my config code:
humidifier:
- platform: switch_humidifier
name: Humidifier
switch_id: switch.sonoff_10017a2176
sensor_id: sensor.temp1_humidity
type: humidifier
start_delta: 0.2
stop_delta: 0.2
Can you help me, please? Thanks!
It seems like to work properly but has a problem... When the sensor value reaches target humidity, it turns off the smart plug successfully, and it will turn off by itself in few seconds.
I know there's already a logic handles internal state change. But I still don't know why this won't work.
You can already copy+paste the generic_hygrostat
component's pending PR, which seems more official, and once it's added you only have to delete custom_components/generic_hygrostat
because config stays the same. Is there any better features in this?
It would be nice to automatically add the linked_humidity_sensor
attribute to the homekit config, especially since it can't be done if HomeKit is configured using the frontend. I am looking into whether this can be done currently, but it might require changes to HomeAssistant Core
It does not work setting attribute humidity via scripts and via Developer dashboard. Works only if you move the slider
Just a friendly heads up, started noticing this message in my logs:
No 'version' key in the manifest file for custom integration 'switch_humidifier'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'switch_humidifier'
It would be nice to expose a setting for a delta that would be added to the desired humidity level so that there is no chance the system will turn the switch on and off repeatedly. A default of 0.2
percent would probably be enough, it would just require waiting to turn off the system until it reached goal + delta
, and then letting it drift until it dropped below (or above) the delta percentage again.
When I restart Homeassistant the thermostat resets the desired humidity level to the default of 50. The expected behavior is to retain the last user setting.
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.