Code Monkey home page Code Monkey logo

Comments (5)

AYapejian avatar AYapejian commented on May 30, 2024

Interesting, wonder if something changed with HA since I implemented this awhile back. I'll have a look as soon as I can, might be a bit longer but I will get to it.

from node-red-contrib-home-assistant.

sibbl avatar sibbl commented on May 30, 2024

You can only get it to work by piping in a message like {"startdate": "2018-01-25T00:00:00.000Z"}}. Everything else will fail because by default it will do a GET request to HA/api/history/period/Thu Jan 25 2018 07:41:10 GMT+0000. It performs new Date().toString() while the API expects an ISO string.

But this API could definitely be better. The query also takes quite long, so an entity filter as well as an end_time filter would be great. The HA API supports both.

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 30, 2024

@sibbl completely agree, this is both a bug and some cleanup/base features needed for the history node.

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 30, 2024

This has been merged into the dev branch, only fixes base use case of startdate ( either configured or overrides ). Created #28 to address enhancements mentioned above

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 30, 2024

Done and merged, as mentioned, the much needed additional changes will be tackled as enhancements in the other issue.

from node-red-contrib-home-assistant.

Related Issues (20)

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.