Skip to content

ginqi7/mijia.el

Repository files navigation

mijia.el

Overview

mijia.el is an Emacs package for managing and controlling Xiaomi MiJia smart home devices within Emacs. It interacts with the mijiaAPI command-line tool to provide device listing, scene management, and more.

Prerequisites

The ctable package is required for table display.

External Dependencies

The mijiaAPI command-line tool must be installed.

Install

  • Clone the project to your Emacs configuration directory:
    git clone https://github.com/ginqi7/mijia.el ~/.emacs.d/lisp/mijia.el
        
  • Add the path to load-path:
    (add-to-list 'load-path "~/.emacs.d/lisp/mijia.el")
        

Configuration

(require 'mijia)

Variables

variabledefault valuedescription
mijia-commandmijiaAPICommand-line tool for MiJia API

Features

  • mijia-list-devices - Display all MiJia devices in a ctable buffer
  • mijia-list-scenes - Display all MiJia scenes in a ctable buffer; click to execute
  • mijia-run-scene - Run the selected scene (used within the scenes buffer)

Example Usage

;; List all devices
M-x mijia-list-devices

;; List all scenes
M-x mijia-list-scenes

;; In the scenes buffer, select a row and click (or call mijia-run-scene) to execute

Project Home

https://github.com/ginqi7/mijia.el

Footnotes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors