Hi
I am new with pekaway and node red. I have pakawey / homebridge with Ruuvitag up and running. Proplem is how to get Temp1 variable read from homebridge Ruuvitag sensor?
Thanks Alpo
Hey Alpo,
can you explain that a bit more in detail?
Having Node-RED with Homebridge and the sensor up and running, does that mean you can see the temperature from the sensor in Homebridge or in Node-RED?
Does Ruuvitag natively support Homebridge? A quick google search states that you’ll need a bridge for that, but I have no experience with these sensors.
There is a Homebridge-plugin to do so, see GitHub - pakastin/homebridge-ruuvitag: Ruuvitag bridge for Homebridge (Apple HomeKit)
Hi
I have raspberry pi 4, VanPICTRL_pi4_v1.0.4.img. there is Homebrige and Node-RED. I use that Github plugin. Here is Homebridge conf:
"bridge": {
"name": "Pekaway Homebridge",
"username": "B8:BF:E4:ED:C1:1C",
"port": 51203,
"pin": "407-85-419"
},
"accessories": [
{
"accessory": "Ruuvitag",
"name": "Ruuvi 1",
"id": "df6e924b2452"
},
{
"accessory": "Ruuvitag",
"name": "Ruuvi 2",
"id": "f26f4309631a"
},
{
"accessory": "Ruuvitag",
"name": "Ruuvi 3",
"id": "d5930686ce4a"
},
{
"type": "switch",
"name": "Relay 1",
"url": "http://localhost:1883",
"topics": {
"getOn": "pkw/cmnd/relay1/POWER",
"setOn": "home/cmnd/relay1/POWER"
},
"otherValueOff": false,
"accessory": "mqttthing"
},
etc.
I can see temperature sensor in Homebridgr.
Thaks Alpo
Now you’d need something to push the sensor data from Homebridge to Node-RED.
I think the easiest way would be to read the sensor data directly in Node-RED as describe here and set the global variable “temp1”