Coder Social home page Coder Social logo

home-assistant-config's People

Contributors

north3221 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-config's Issues

How to install?

This looks brilliant and exactly what I've been looking for.

Any hints on how to install this. As a relatively new home assistant user I'm not so familar with useage of automations outside the UI.

I pasted this into a yaml for a new automation and that didn't seem to work.

Installation instructions for other noobs, on the readme would be much appreciated!!

One condition never met

Hi, first of all, I'd like to thank you for your code. It's something I was really looking forward to and I didn't have a clue how to face it..

I've tado valves and Airzone so this approach is perfect to me.

I'm finding a problem with the following condition that is never met:

      # Only run if offset hasn't been changed for longer than back_off
      - "{{ (as_timestamp(last_updated) < as_timestamp(utcnow() - timedelta(seconds=back_off_secs|int))) if battery_saver else true }}"

I think that the problem is that the entity never has the attribute 'offset_last_changed' (it just doesn't exist). I don't know if it is supposed to create it into the entity in the following line or it is just a variable that should be retained til the next try (not sure if it works like that).

      last_updated: >
        {{ state_attr(climate_id, 'offset_last_changed') if state_attr(climate_id, 'offset_last_changed') != None else utcnow() - timedelta(seconds=(back_off_secs|int +100)) }}

Thanks and sorry for the inconvenience.. hope I made it clear..

Unhandled exception

Hiya,

Recently tried to use your script, looks great. However, I get an unhandled exception error in my logging when it is triggered. Do you have any idea what could be the problem?

2021-03-02 10:21:04 ERROR (MainThread) [aiohttp.server] Unhandled exception Traceback (most recent call last): File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback read = await self.run_in_executor(None, file.readinto, view) asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start resp, reset = await task File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request reset = await self.finish_response(request, resp, start_time) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response await prepare_meth(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare return await self._sendfile(request, fobj, offset, count) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile await loop.sendfile(transport, fobj, offset, count) File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile return await self._sendfile_fallback(transport, file, File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback await proto.restore() File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore self._transport.resume_reading() File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading self._ssl_protocol._transport.resume_reading() AttributeError: 'NoneType' object has no attribute 'resume_reading'

My config, see attachment due to format issues on Github
tado_offset.yaml

.

Open window detection causes delay to heating turning on after offset

With open window detection on, as soon as the offset decreases, open window is triggered and there is a resultant delay in turning the heat up.

I would propose checking the state of open window first, then if on, turning it off before changing the offset and then turning it back on.

It looks like there is no service in the integration to do this but certainly possible from the api directly.

I understand, if I'm not mistaken that you maintain the tado integration. Would it be possible to add this service and then I can work on the changes to the blueprint?

Unfortunately my python isn't yet good enough to propose these changes to the integration my self.

offset last changed is not an available attribute

unless I'm missing something, it doesn't look like this state attribute that you've referenced has any value.
This means that the limiting the timing condition doesn't work as far as I can see
state_attr(climate_id, 'offset_last_changed')

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.