Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flows stopped due to missing node types. mihome-cloud #39

Open
QuocurIQ opened this issue Apr 17, 2021 · 9 comments
Open

Flows stopped due to missing node types. mihome-cloud #39

QuocurIQ opened this issue Apr 17, 2021 · 9 comments

Comments

@QuocurIQ
Copy link

node 15.14.0
node-red 0.20.5
node-red-contrib-mihome 1.0.1

After installation from pallete manager I can't see the mi home cloud node, as shown in the images in the description. The config node, when I double-click on the mihome devices is always empty, when I try to update it.

@BOOMER74
Copy link

You seem to be on the wrong package 😄 You need node-red-contrib-mihome.

mihome-cloud it's a config node and it's don't showing on nodes list. You need to open devices node and configure Cloud field.

@QuocurIQ
Copy link
Author

QuocurIQ commented Apr 27, 2021 via email

@BOOMER74
Copy link

Please try to reinstall to the last version. I did a clean install of node-red and install package, all works.

node-red

Also, please reopen bug in node-red-contrib-mihome issues.

@QuocurIQ
Copy link
Author

Where do I get the latest version? I installed 1.0.2 from the Palette Manager. It seems not to work with node-red 1.32. It even looks weird in the Palette Manager, see attached screenshot.
Screen Shot 2021-04-28 at 07 16 23

@QuocurIQ
Copy link
Author

QuocurIQ commented Apr 28, 2021

I tried on another instance of node-red:1.0.6 and it works. It's either something with 1.32 or the fact I'm running it in a docker container

Thanks one again for your help.

@QuocurIQ
Copy link
Author

QuocurIQ commented May 1, 2021

Duuude. I just noticed I was on the wrong package :D. Anyways, I got the node-red-contrib-mihome partially working in an older version of node-red. There is a devices node, that gets all the devices, including props, so I can read the measurements from there. But I have a BLE Thermohygrometer. It returns some data, but the props object is missing - compared to the lumi.sensor_ht.v1.
The device model is: miaomiaoce.sensor_ht.t2.

Here is what I'm getting from the devices node (ids and IPs modified):

did: "blt.3.167deadbeef95"
token: "D3ADB33FD3ADB33FD3ADB33F"
longitude: "0.00000000"
latitude: "0.00000000"
name: "Device Name"
pid: "6"
localip: "8.8.8.8"
mac: "DE:AD:BE:EF:95:95"
ssid: ""
bssid: ""
parent_id: ""
parent_model: ""
show_mode: 1
model: "miaomiaoce.sensor_ht.t2"
adminFlag: 1
shareFlag: 0
permitLevel: 16
isOnline: true
desc: "Device online "
extra: object
uid: 6665630343
pd_id: 1337
password: ""
p2p_id: ""
rssi: 0
family_id: 0
reset_flag: 0

What's interesting, is that the localip is my WAN public IP, as opposed to the zigbee sensors, that report the local IP of the mihome gateway ...

How can I help to add support for this device?

Thanks

Regards

Marek

@BOOMER74
Copy link

BOOMER74 commented May 1, 2021

Hi. miaomiaoce.sensor_ht.t2 should be work with mihome-th-monitor node. You need to use mihome-devices node only to get all devices list and easily find did (device id) field for required device.

@QuocurIQ
Copy link
Author

QuocurIQ commented May 1, 2021

Hi. The mihome-th-monitor always gives me:
"Mi Home: TH Monitor: cannot find last data for temperature or humidity"

This happens for the zigbee ones, as well as the BLE. That's why I use the devices node, and extract the measurement from the "prop" property and divide by 100. But the BLE doesn't have a "prop". What's also interesting, that I don't see the battery info in neither of the sensors outputs. But that might be a node-red-contrib-mihome issue. The ht.t2 sensor not having "prop" looks more like node-mihome to me.

Thanks

Regards

Marek

@QuocurIQ
Copy link
Author

QuocurIQ commented May 1, 2021

Hi.

Got the mihome-th-monitor node working for the BLE Sensor, by using the device id also in the Name field of the node. The zigbee sensor still gives me: Mi Home: TH Monitor: cannot find last data for temperature or humidity.

The BLE sensor also doesn't have a parent_id. Could it be that it's connected through my phone, not the gateway? I see it in the BLE child devices on the gateway ....
My idea was to determine the location of the sensor by the gateway it's connected to. This way, I wouldn't have to do any changes in node-red to start collecting data from new sensors....

Regards

Marek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants