Code Monkey home page Code Monkey logo

esphome_rika_gsm's Introduction

esphome_rika_gsm

The rika_gsm component emulate the gsm module that can be installed on rika stove. It provide a way to send command and retreive the sms the stove want to send.

Hardaware

The GSM module share the same DA15 port as the ambiant temperature sensor at the back of the stove. The connection can be done by soldering new cables on sensor port or by creating a split cable to place in between.

Also the stove use 5v logic on the serial connection so some level shifting or protection could be required on your board.

Config

Component

external_components:
  - source:
        type: git
        url: https://github.com/n-serrette/esphome_rika_gsm
        ref: main
    components: [ rika_gsm ]

uart:
  id: rika_uart_bus
  tx_pin: GPIO16
  rx_pin: GPIO17
  baud_rate: 38400

rika_gsm:
  id: ria_gsm_component_1
  pin: "1234"
  phone_number: "+33685967412"

Configuartion variables:

  • pin (string): 4 digit string corresponding to the pin code set in the gsm configuration of the stove.
  • id (Optional, ID): Manually specify the ID used for code generation.
  • phone_number (Optional string): phone number use to communicate with the stove. No true sms are sent, this is a dummy phone number.

Note

Baud rate:

  • Revo (1st gen): 38400
  • TOPO: 38400 (not verified)
  • ROKO: 115200 (not verified)

Text Sensor

text_sensor:
  - platform: rika_gsm
    raw_status:
      name: "Stove raw status"

Configuration variables

  • raw_status (Optional): give the last sms that the stove sent
    • name (Required, string): The name for the raw_status text sensor.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Text Sensor.

Binary Sensor

binary_sensor:
  - platform: rika_gsm
    gsm_status:
      name: "GSM status"

Configuration variables

  • gsm_status (Optional): indicate if the gsm option is set on the stove
    • name (Required, string): The name for the gsm_status binary sensor.
    • id (Optional, ID): Set the ID of this sensor for use in lambdas.
    • All other options from Binary Sensor.

When the gsm option is set the stove try to read if their is a new command every 5s. If their is no stove request after 10s the gsm option is considered deactivated and will be concidered active on the next stove request.

rika_gsm.send_command Action

Send a command to the stove.

on ...:
    then:
        - rika_gsm.send_command:
            command: "ON"

Configuration options:

  • command (Required, string, templatable): command sent to the stove

esphome_rika_gsm's People

Contributors

n-serrette avatar

Watchers

 avatar

esphome_rika_gsm's Issues

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.