Giter VIP home page Giter VIP logo

node-red-contrib-xiaomi-smart-devices's People

Contributors

igdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-xiaomi-smart-devices's Issues

Multiple msg ?

Hello,
Congratulations on this work!
I have a magic cube, several temperature sensors, opening alarms and switch.
I have several questions:
1- Why in your diagram, did you connect the devices to the output of the gateway?
By doing like you, I have several times the same payload per action on a device.
2-What are the nodes of the equipment for, because by putting the gateway alone, I get the same message?
3-could you share your processing function before the MQTT?
Thank you in advance:)

error: "No key"

Hi,

I removed the old nodered contrib mi devices palette and installed this newer version.

however, now im getting this No key error in the debug text:
14-7-2019 21:31:57node: a94b06de.92b828 msg.payload : Object object cmd: "write_ack" sid: "7811dcb791c5" data: object error: "No key"

Trying to inject this JSON: {"payload":{"rgb":440038609}}
screen1
screen2

Really can't figure out what i'm missing here :)

Cannot control the gateway (maybe due to new firmware?)

Hi @igdr

Thank you for your developing nodes.
I am using nodes to control the gateway. The node can connect to Gateway but it seem it cannot control it (only receive event from Gateway)
For example, I use function to change the light of gateway:

let cmd = {
    "rgb": 440038609
}
msg.payload = cmd;
return msg;

After that, the node show received message but the Gateway's light is not controlled

{"fromip":"NodeRED_IP:9898","ip":"NodeRED_IP","port":9898,"payload":{"sid":"xxxxxxxxxx","cmd":"write","model":"gateway","data":{"rgb":440038609,"key":"xxxxxxxxxxxxxxxxx"}},"_msgid":"c214c09f.ded6e"}

If I use Mi Home to control light, I received the event from Gateway (report event):

{"fromip":"Gateway_IP:4321","ip":"Gateway_IP","port":4321,"payload":{"cmd":"report","model":"gateway","sid":"xxxxxxxxxx","short_id":0,"data":{"rgb":0,"illumination":1292}},"_msgid":"1093628b.43d86d"}

I guess due to gateway's firmware is changed, the command format is changed. Do you have any idea?

Thank you!

No voltage from Sensors via MQTT

Hey there,

I've recognized the following on my sensors:

-Temperature und Humidity Sensor is transmitting Battery Voltage via MQTT
-Motion Sensor, Window-Door Sensor and Cubes are not transmitting Battery Voltages

Other Sensors I couldn't test because I don't own these.

Is it possible to add this please?

Kind regards,
Clubsport

guidelines to add switch?

may i ask some guidelines how to add switch?
switch
adding gateway and name seems not working... and from dropdown menu is not possible to choose anything...

2.0.3 crashes node-red

after installing 2.0.3 loop reboot

13 May 06:11:43 - [info] Started flows 13 May 06:11:43 - [red] Uncaught Exception: 13 May 06:11:43 - Error: bind EADDRINUSE 0.0.0.0:9898 at Object.exports._errnoException (util.js:1024:11) at exports._exceptionWithHostPort (util.js:1047:20) at _handle.lookup (dgram.js:242:18) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickCallback (internal/process/next_tick.js:180:9) nodered.service: main process exited, code=exited, status=1/FAILURE Unit nodered.service entered failed state. nodered.service holdoff time over, scheduling restart. Stopping Node-RED graphical event wiring tool.... Starting Node-RED graphical event wiring tool....

Gateway config not working

I have a new gateway configured. Set it to the correct key and host ( ip address in my case) and port ( 9898) but a new gateway node won't connect. nothing is in the logs.

Sensor Always "disconnected"

Hi, I am having issues with the temp sensor node always showing as "disconnected". I have used the gateway node and know that it is communicating with the gateway OK as get some debug info out of it. I simply don't get anything from the sensor though. The sensor itself is working as is showing in the Mi Home app.

What am I doing wrong? I am very new to Node-Red so could well be me!

Thanks.

image

daemon.err node-red: Sending message

Hello,
I apologize, my English is not so good.
I have the following problem with the node and hope that someone has a solution for it.
I use Redmatic on a Rasberry.
Have the Xiaomi Gateway installed and get the following error message.
Jul 25 18:08:47 homematic-raspi daemon.err node-red: Sending message '{"cmd": "read", "sid": "158d0001d38970", "data": "{" key \ ": \ "b992d4ffa50f4ed56b37d0e4040e0506 "} "} '
What is the error and how can I turn it off?
Many thanks in advance for your help.

Poll the sensors state

Hi, this is not an issue but a question.
Sometimes i need to poll the sensors state: for example, i would like to read doors sensors state after NodeRed booting to go to correct state immediately and not after the first event (when door is opened or closed).

Is seems not to be possible from this node (utils node delivers list of sensors without any data for each one), but if it possible via API? Has Xiaomi this feature?

Brightness Gateway

Hi,
is it possible to set the brightness of the gateway-light. In the xiaomi-app i can do this?

Kind regards
Klaus

Sometimes Not Connecting and Not Receiving Data

I am able to connect my xiaomi gateway device to node-red. But, I have problem that sometimes xiaomi gateway node-red is not connected and also it is not receiving the data. But, sometimes it also work. Could you please resolve it?

I am using latest firmware in my xiaomi gateway.

Thank you

homeassistant error

after setting up xiaomi gateway, adding some automations and stuff to node red my homeassistant giving all the time error:

Log Details (ERROR)

Sat Jul 13 2019 16:36:56 GMT+0300 (Eastern European Summer Time)

Unknown gateway ip 192...*

ip is address where my node red is running.
please advise.

Does it support xiaomi aqara wireless relay controller?

In code, I can see that wall switches are there.
But I'm not sure if it supports wireless relay controller from Xiaomi, it helps automate existing switch instead of replacing the old switch with a smart switch.

If it is not supported than the support of the same would be highly appreciated.

Нормальный пример

Сделайте пожалуйста нормальный пример. В виде кода, который можно вставить в поток и изучить его.

Картинка - на отъебись...

example as flow

Hi,

can you please provide the example picture as flow especially the function for the RGB and SOUND?

thx
Jakub

Crashing Node Red

Latest version seems to be crashing node-red entirely, causing a restart Loop..

3 May 23:24:09 - [red] Uncaught Exception:
3 May 23:24:09 - Error: addMembership EINVAL
at _errnoException (util.js:1022:11)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
3 May 23:24:13 - [info]

I then have to go in edit the flow jason file, disable the flow that contains the gateway node, re start node red. Delete the gateway node, enable the flow and node red then runs fine again.

Anyone else having similar issues with the latest release?

key is not set

Hi,
firstly thank you for the package=)

I'm trying to control my xiaomi hub. In order to obtain the devices list from the hub i using "Xiaomi Gateway Utils" box. Gateway is configured, key is entered (i've already controlled the hub via home-assistant before).
After i trigger the box (i'm also not sure i give correct input data - there is no information in the help of this box) i receiving the error "key is not set" (see screenshots).
Sorry if i'm missing important basic knowledge about node-red, it's my first try to use it.

Screenshot from 2019-06-22 22-50-34
Screenshot from 2019-06-22 22-50-14

two gateways

hi there, added two gateways with two different ips/keys, added two different sensors and connected debug nodes to them. seems to work fine but for example motion from one gateway is outputted on debug node from both gateways. is this normal behaviour?

sidenote - is it possible that LUX and MOTION could be outputted on one message? this is of course in regards to motion sensor.

thank you

[STILL NOT WORKING] can't save ip and port gateway

Adding the gateway config I can set name and password (key), but adding ip address and port, after click "update" if i come back to node those fields ar cleared.
Of course I'm not receiving any data from gateway node

After update not work

Hi after update, i can not control my xiaomi devices. Before i can control my switches but now not.
All others sames to work.
Now this mesage not work :
msg.payload = { "cmd":"write", "model":"ctrl_neutral2", "sid":"100d0d11955c7c", "short_id":23971, "data":{"channel_0":"on"} }; return msg;

obrázok

Thanks for help.

Pull request

Hi,

I've opened a new pull request. Can you take a look at it? Btw, if you have no desire to maintain this repo anymore then I am prepared to take over.

cheers.

Gateway and node red host on different vlans?

My node red node throws up a "no key set message" (I have set the key correctly). Does this mean I need to set up multicasting across the vlans? If so has anyone got any tips as to how to set it up on ubiquiti devices?

How to send commands to the gateway?

Thanks for this module. I can't figure out though how to send commands to the gateway (play/stop ringtone, control the LED). Could you please explain?

502 error on Deploy

Hi there! I'm a noob with node red...Anyway, after plugin was added into my Home Assistant Node Red and after I added my first Xiaomi Gateway instance into node red greed on deploy click I see an 502 error and my node red wont work anymore...

https://prnt.sc/qdsbo7

Any ideas ?

Cant deploy two gateway nodes

My Nodered is in a bootloop it seems. Caused by this:

...
UDP socket listening on 0.0.0.0:9898
9 Mar 16:10:47 - [red] Uncaught Exception:
9 Mar 16:10:47 - Error: bind EADDRINUSE 0.0.0.0:9898
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
....

What happened??

I have three questions:

  1. The last version kills my node-red. The logs are FLOODED with messages like for instance
    Sending message '{"cmd":"write","sid":"158d00024e4933","data":"{"cmd":"write","sid":"158d0002c91e47","data":{"cmd":"write","sid":"158d0002c91e47","data":{"cmd":"read","sid":"158d0002579485","data":{"key":"2f11870149aa8f47ccc7761430773f66"},"key":"2f11870149aa8f47ccc7761430773f66"},"key":"2f11870149aa8f47ccc7761430773f66"},"key":"2f11870149aa8f47ccc7761430773f66"}"}'

Hundreds of them until I kill the non-responding server!!
Edit: Seems to be gone now
Edit 2: Nope, got it back and it kills my node-red server

  1. is there something going on with a history rewrite of the repo? I have added the smoke detector which you merged on 31st of March but which now reads as being added by you 7 hours ago??

  2. where are all my devices in the config, I cant find them anymore. How do I add a device?

How to use The Xiaomi Smoke Detector ?

image
The simple question on how to use Xiaomi Smoke Detector.

Device section is not selectable, and what to use on Open msg and Close msg?

Thank you for the node.

Sorry

i still have a problem but maybe not from this module.
Sorry

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.