1.1.1 • Published 3 years ago

node-red-contrib-mihome v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-red-contrib-mihome

platform npm npm GitHub

Add nodes to get data from devices connected to Mi Home using node-mihome. See changelog for the latest changes.

Requirements

  • node v12.22.0 or higher
  • node-red v1.3.0 or higher

Install

Run npm i node-red-contrib-mihome in ~/.node-red directory or search node-red-contrib-mihome and install from Palette Manager.

Supported devices

DeviceModelsTestedNode info
Mi Temperature andHumidity Monitor 2LYWSD03MMC (China)NUN4126GL (Global, should be checked)Palette name: th monitorNode name: mihome-th-monitor
Mi Temperature andHumidity SensorWSDCGQ01LMPalette name: th sensorNode name: mihome-th-sensor

Adding device support

If you want to add device support, you can make a PR or add request in discussions. Check supported devices in node-mihome package and use node template for boost development. Additional information you can find in contributing guide.

Available nodes

mihome-cloud

Provide authorization for Mi Home.

Settings

SettingRequiredDescription
UsernameMi Home account username
PasswordMi Home account password
CountryWhich server use to connect
AqaraShould it be Aqara protocol initiated
Setting preview

mihome-cloud

Aqara protocol limitations: you can set up only one mihome-cloud node with Aqara protocol enabled, all another may cause errors (in short explanation it's because node-mihome open socket connection in exclusive mode).

mihome-devices

Returns all devices connected to Mi Home.

Palette name: devices.

Statuses

StatusesPreview
Node not connected to cloudmihome-devices
Node connected to cloudmihome-devices

Settings

SettingRequiredDescription
CloudMi Home account settings
NameNode display name
Setting preview

mihome-devices

Setup

Description
Inputpayload with true value
Outputpayload as array of objects

mihome-th-monitor

Returns climate data.

Palette name: th monitor.

Statuses

StatusesPreview
Node not connected to cloudmihome-th-monitor
Node connected to cloud but not configuredmihome-th-monitor
Node connected to cloud and configuredmihome-th-monitor

Settings

SettingRequiredDescription
CloudMi Home account settings
Device IDUnique device ID from Mi Home, you can get it by checking did field from mihome-devices output
NameNode display name
Setting preview

mihome-th-monitor

Setup

Description
Inputpayload with true value
Outputpayload as object contains temperature, humidity, battery level (could be null) and timestamps