Code Monkey home page Code Monkey logo

hawundasmart's People

Contributors

ob0t avatar tonyroberts avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pink88

hawundasmart's Issues

Error - 'Unsupported Preset mode' when setting manual target temp

When setting a manual target temperature the error below appears and preset mode is set to 'null'.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:230
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:45:46 pm (3 occurrences)
Last logged: 10:45:46 pm

[140337819701696] Unsupported Preset mode
[140337625076672] Unsupported Preset mode
[140337622834112] Unsupported Preset mode
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 230, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/wundasmart/climate.py", line 328, in async_set_preset_mode
    raise NotImplementedError(f"Unsupported Preset mode {preset_mode}")
NotImplementedError: Unsupported Preset mode 

I guess we need a preset mode called manual that is set when a temp is manually set?

If this is the case, the do we need to define the behaviour of what happens when that preset is user selected? If so, then I think the behaviour when switching from auto -> heat works quite nice - the target temp is set to 2 deg above current temp (rounded to the nearest whole number I think).

Manually setting a room to 'Off' should reflect in the climate mode

Current Behaviour:
Given a room has been manually set to off (in the Wunda app),
the target temperature correctly pulls through to the climate sensor as 0,
however the climate mode is set to 'heat'

Expected Behaviour:
Given a room has been manually set to off (in the Wunda app),
the target temperature should pull through to the climate sensor as 0,
and the climate mode should be set to 'off'

Where no Room Thermostat is used, Wunda take an average of TRVs for temperature

Current Behaviour:
No room thermostat associated with a room results in the climate sensor showing 0 for temp and 0 for humidity.

image

Expected Behaviour:
Match the Wunda app. When no room thermostat is available, an average of the TRV temperatures are used and the humidity is null/hidden

IMG_76422B07BDC6-1

Context:

TRVs from syncvalues.cgi

32;1699602272;s:1;t:TH3K;v:1.2;vpos:0;vtemp:17.90;bat:100;sig:100;room_id:2;vpos_min:10;vpos_range:40;downforce:0;alarm:0;trv_range:680;
33;1699602273;s:1;t:TH3K;v:1.2;vpos:0;vtemp:19.60;bat:100;sig:88;room_id:2;vpos_min:5;vpos_range:40;downforce:0;alarm:0;trv_range:580;

Room from syncvalues.cgi
123;1699602318;t_lo:17.00;t_norm:19.00;t_hi:25.00;heat:4;temp_pre:4;prg:0;lock:0;temp:0.00;ntemp:-1.00;ntime:0;es_avgtime:0;zone:2;relays:0;hb0:0;hb1:0;enable:123;tmax:27;tmaxh:5;settime:7200;pic:1;loc_in:1;loc_out:3;alarm:0;name:FF%20Hallway;tbl:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;

Clearer hvac_action

(My deduction is as follow.. )

Expected Behaviour:

When hvac_mode changes, hvac_action value should be checked against the hub and updated accordingly. (As per Wunda app behaviour)

E.g.
When hvac_mode changes from Auto to Off where the hvac_mode was 'heat', then the hvac_mode when checked should now be reporting as 'off'.

When hvac_mode changes from Off to Heat, then hvac_action should also be reporting as 'heat'.

When hvac_mode changes from Off to Auto (where schedule requires heat), then hvac_action should be reporting 'heat'.

Current Behaviour:

When hvac_mode changes, hvac_action doesn't appear to be be checked/updated. hvac_action appears to update a number of minutes later.

This causes confusion as it's reporting incorrect status, whereas the Wunda app reports this instantly.

Error getting syncvalues.cgi

The integration is not working for me. I managed to caught these logs.

Traceback (most recent call last):
  File "/config/custom_components/wundasmart/pywundasmart.py", line 45, in get_devices
    async with _get_semaphore(wunda_ip), \
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 894, in start
    with self._timer:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError

Time-bound manual heating level

The Wunda app allows for Wunda room schedules to be overridden with a set temp for a set time.

This is great for boosting a room's temp for a few hours but not worrying about returning it to the schedule.

Would be great if a service allowed for this behaviour to be exposed to Hass.

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.