Giter Site home page Giter Site logo

sensit-ha-integration's Introduction

sensit-ha-integration

Home Assistant integration for Sensit devices.

Sensors supported:

  • Temperature sensor
  • Battery sensor

Installation

For now, only local mode is supported: raw data must be pushed to Home Assistant is a sensor called 'sensor.DEVICE_ID' with the ID of your Sensit. To do, you can rely on callback (see below).

  1. Add integration on your platform:
  2. With HACS (advised): follow the initial configuration and add this GitHub repository as Custom repository (HACS, Integrations, dots top-right of page).
  3. Manually: copy files in custom_components/sensit folder on your Home assistant instance in the config folder, with the same path custom_components/sensit
  4. Home assistant must be restarted after installation.
  5. On the integration page of home assistent, click Add integration
  6. Select Sensit integration.
  7. Configure the new Sensit in the integration:
  8. Add device ID
  9. Choose a unique name for your sensit (can be the same as ID)
  10. Choose Version (1, 2 or 3)
  11. Optionnaly, choose mode (only local is supported for now).
  12. Repeat from 4 of you want to do more sensits.

Push data with HTTP/s callbacks

  1. Create a Long-lived access token in home assistant
  2. Go to your profile.
  3. Click on 'Create token' at the bottom of page.
  4. Connect to the Sigfox backend
  5. Go to Callback page of the device type with sensits
  6. Create new Custom Callback:
  7. Select Data uplink
  8. Channel URL
  9. URL pattern https://HOST:PORT/api/states/sensor.{device}
  10. Mode POST
  11. Check send SNi
  12. Add a 'authorization' header with value 'Bearer YOUR_TOKEN'
  13. Set application/json as Content type.
  14. Set data.

Data can be customized, for the integration, we will only need the raw data pushed to sensor.deviceID Data example:

{
"state": "{data}", "attributes": {"friendly_name": "Sensit raw data", "version": "v2", "id": "{device}"}
}

More details on Home Assistant HTTP Sensors in the documentation.

sensit-ha-integration's People

Contributors

lionelbertaux avatar lbertaux avatar

Watchers

 avatar

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.