Giter Site home page Giter Site logo

home-assistant-crisp's Introduction

Home Assistant Crisp

GitHub Release GitHub Activity License

Project Maintenance

Integration to integrate with Crisp.

Crisp account

An instance of this integration provides information about a single Crisp account into Home Assistant. The integration can be set up multiple times if you want to track multiple accounts. An account is represented as a device.

Account sensors

Name Type Description
Order count total int Total number of orders in your Crisp account (includes completed, cancelled and pending orders).
Order count open int Count of open orders in your Crisp account (out for delivery, or planned in the future).

Next order sensors

If there are orders planned for delivery, the following sensors are available for the order that is closest to delivery.

Name Type Description
Next order delivery on date Delivery date
Next order delivery start datetime Start of the delivery window (as selected by the user)
Next order delivery start time time Start time of the delivery window (as selected by the user)
Next order delivery end datetime End of the delivery window (as selected by the user)
Next order delivery end time time End time of the delivery window (as selected by the user)
Next order product count int Number of order lines (count of different products, not a sum of counts)

Installation using HACS

  1. Open the HACS dashboard
  2. Add this repository:
    1. Open the menu located in the top-right (the 3 dots)
    2. Select Custom repositories
    3. Repository: enter https://github.com/NLthijs48/home-assistant-crisp
    4. Category: select Integration
    5. Click Add
    6. Close the popup
  3. Search for Crisp, or click here:

Open your Home Assistant instance and open the Crisp repository inside the Home Assistant Community Store

  1. Click the Download button in the bottom right corner
  2. Confirm by clicking Download
  3. Restart Home Assistant

Set up the integration

  1. In the HA UI go to Configuration > Integrations click + and search for Crisp, or click here:

Open your Home Assistant instance and start setting up the Crisp integration

  1. Enter your email address that you use for your Crisp account
  2. Enter the login code you receive on your email from Crisp
  3. Done, entities should show up with information about your account

Open your Home Assistant instance and show the Crisp

Manual installation

Copy all files from custom_component/crisp/ to your HA installation, restart HA, configure the integration

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


home-assistant-crisp's People

Contributors

dependabot[bot] avatar nlthijs48 avatar

Watchers

 avatar

home-assistant-crisp's Issues

Implement a reauth flow

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Whenever the Crisp account is logged out for any reason, you currently need to remove the integration and add it again.

Describe the solution you'd like

Implement the reauth flow so that Home Assistant nicely shows the reauth indication and performs the login flow again (keeping all entities and such).

Describe alternatives you've considered

None

Additional context

https://developers.home-assistant.io/docs/config_entries_config_flow_handler#reauthentication

Support selecting the country of the Crisp account

Crisp is available in BE and NL, support using accounts for both:

  1. Ask for the country in the first config flow step
  2. Use the country during the login api calls
  3. Add the country to the config entry name
    • User accounts at Crisp are specifically for either BE or NL, therefore 2 accounts with the same email can exist, for different countries

Maybe add some device properties that indicate country + userid?

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.