spongioblast / node-red-contrib-local-mihome

Node Red nodes to get data from and send commands to devices connected to the local network using
GNU General Public License v3.0
1 stars 3 forks source link

Device Fan start after using "getdata"-Node #4

Open Jodameister opened 2 years ago

Jodameister commented 2 years ago

Hello, i have the two Xiaomi devices: "Mi Air Purifier 3H" (zhimi.airpurifier.mb3) and "Smartmi Standing Fan 2S" (zhimi.fan.za4).

The Fan is set to off and mode is manual. After I pull the data with the "getdata"-Node, the devices turn on the fan. The Response of the node say, the fan state ist false:

OUTPUT:

air-purifier:fault: 0
air-purifier:on: false
air-purifier:fan-level: 1
air-purifier:mode: 3
environment:pm2.5-density: 37
environment:relative-humidity: 48
environment:temperature: 23.1
filter:filter-life-level: 75
filter:filter-used-time: 842
alarm:alarm: false
indicator-light:brightness: 1
indicator-light:on: true
physical-controls-locked:physical-controls-locked: false

It seems, that the node send a command.

spongioblast commented 2 years ago

Ah yes, forgot to remove the on command after the poll. Will fix it in the next release.