Code Monkey home page Code Monkey logo

deako_hass_integration's People

Contributors

caminadab avatar ctso avatar eifinger avatar eseglem avatar github-actions[bot] avatar iantrich avatar joedorman avatar ludeeus avatar matthewflamm avatar oncleben31 avatar salem84 avatar sebirdman avatar swartjean avatar tefinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deako_hass_integration's Issues

Integration fails to control multiple devices at once

Version of the custom_component

latest

Configuration

Nothing special, brand new HASS with Deako recently installed

Add your logs here.

This error originated from a custom integration.

Logger: custom_components.deako
Source: custom_components/deako/deako.py:174
Integration: Deako Smart Lighting (documentation, issues)
First occurred: 1:08:31 AM (3 occurrences)
Last logged: 1:08:38 AM

Failed to parse {'src': 'deako', 'status': 'error', 'timestamp': 1634717311, 'data': {'code': 'REQUEST_MALFORMED', 'message': 'no type field'}}
Failed to parse {'src': 'deako', 'status': 'error', 'timestamp': 1634717318, 'data': {'code': 'REQUEST_MALFORMED', 'message': 'no type field'}}

Describe the bug

Whenever the integration sends multiple requests in a short period of time, the devices fail to parse the requests and consider them "malformed". I found documentation from the official Deako repo stating that for optimal results, requests should be sent no faster than 800ms apart.
I found that the threshold (at least on my local network) for simultaneous requests working is about 5. Ideally a request buffer should be included in the integration to force a delay between requests.

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.