This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script is meant to be used in a Homey Flow as an 'And' card. | |
*/ | |
let sensorName = '<insert pulse name/address here>' | |
log(`sensorName: ${sensorName}`); | |
// Get all devices | |
const devices = await Homey.devices.getDevices(); |
OlderNewer