Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Access sensors value directly #46

Open
kpagnat opened this issue Aug 21, 2018 · 2 comments
Open

Access sensors value directly #46

kpagnat opened this issue Aug 21, 2018 · 2 comments

Comments

@kpagnat
Copy link

kpagnat commented Aug 21, 2018

Hi,

Is it possible to access the values of sensors directly without waiting for the gateway to send them when there is update ?

On the example of flows you provide, there is a "Get all sensors statuses" but it doesn't retrieve the temperature and humidity of the sensors.

Thanks for your help.
And good job for the node !

Kevin

@Padamdam
Copy link

Hi,

Thanks for making this Node Red extension.
I'm also wondering if and how is it possible to actively ask the data from temperature sensors.

Thanks,
Adam

@Padamdam
Copy link

Found a way :)

Using Inject → Function → Gateway Node

Function is as follows :

msg.payload = {
"cmd": "read",
"model": "weather.v1",
"sid": "158dXXXXXX",
}
return msg;

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

No branches or pull requests

2 participants