Coder Social home page Coder Social logo

jimmyd-be / home-assistant-sensor-renson-ventilation Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 4.0 64 KB

This is an unofficial way of getting data from the ventilation system and changing some settings of the ventilation system. I will try to implement all features of the Endura delta app inside the integration of Home Assistant.

Python 100.00%
hacs home-assistant renson

home-assistant-sensor-renson-ventilation's Introduction

Hi there ๐Ÿ‘‹

I'm a full stack developer from Belgium.
Certified in Java, c++ and AWS.


๐Ÿ”ก Languages:


๐Ÿงฐ Frameworks:


๐Ÿ› ๏ธ Tools:


๐Ÿ”ฅ My stats:

jimmyd-be's Stats
jimmyd-be's Streak
jimmyd-be's Top Languages

home-assistant-sensor-renson-ventilation's People

Contributors

alois-git avatar jimmyd-be avatar krmarien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

home-assistant-sensor-renson-ventilation's Issues

Instant "Failed to connect" when trying to configure the add-on

Hi,

I am already manually boosting the ventilation of my Renson Healthbox using a switch:

#
# Switches
#
# Renson
  - platform: rest
    name: boost_ventilatie_badkamer
    resource: "http://192.168.0.5/v1/api/boost/2"
    method: put
    body_on: '{"enable": true, "level": 200, "timeout": 3600}'
    body_off: '{"enable": false}'
    is_on_template: "{{ value_json.enable }}"

I saw that there is an integration, but whenever I try to configure it, i get the "Failed to connect" error when entering the IP address. Either "192.168.0.5" or "http://192.168.0.5". I don't see any errors showing up in the log.

How can I debug this ?

Thanks

Add value for showing type of ventilation level

Currently we have following code that returns the raw value of the ventilation level. Make a new entity for just returning the 'program' part of the data.

RensonSensorEntityDescription(
        key="CURRENT_LEVEL_FIELD_RAW",
        name="Ventilation level raw",
        field=CURRENT_LEVEL_FIELD,
        state_class=None,
        raw_format=True,
    ),

Set Timer Level not working

Not sure if this is something general or just something in my setup.
Tried to use the renson.set-timer-level service, but home assistant is returing an issue with the following log
other services (set manual level for example) is working just fine.

Hope this helps!

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/renson/__init__.py:67
Integration: Renson
First occurred: 19:21:57 (2 occurrences)
Last logged: 19:22:07

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: can only concatenate str (not "Level") to str
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/renson/__init__.py", line 67, in set_timer_level
    await hass.async_add_executor_job(renson_api.set_timer_level, level, time)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/renson_endura_delta/renson.py", line 139, in set_timer_level
    data = ValueData(str(time) + " min " + level)
TypeError: can only concatenate str (not "Level") to str

VMC in breeze mode makes the addons crash

First thanks for the work on this addon, it's really nice :)

I encountered a small but when turning the breeze mode on the VMC. The addon crash not being able to map the Breeze speed level.

  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/renson/sensor.py", line 310, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 226, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 349, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 146, in async_update_listeners
    update_callback()
  File "/config/custom_components/renson/fan.py", line 68, in _handle_coordinator_update
    self.current_speed = SPEED_MAPPING[level]
KeyError: 'Breeze'```

Current integration is not starting

Current integration is not starting ( installed by HACS ) and sensor conf was added to configuration.yaml

HA 2023.1.7
HACS 1.30.0

Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/init.py:529
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 16:34:03 (1 occurrences)
Last logged: 16:34:03

[140117635755040] The system cannot restart because the configuration is not valid: Platform error sensor.renson_ventilation - Integration 'renson_ventilation' not found.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 529, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.renson_ventilation - Integration 'renson_ventilation' not found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.