Homeyscript Homey.flowToken.getFlowToken value is undefined

Bananamoon
Mon, 03 Apr 2023 06:09:16 +0000
Questions & Help

Hello,

I’m new to homey pro and recently was playing around with HomeyScript. I have the new Homey Pro (2023) and I have trouble getting the values from my devices.

When I try to get my devices (even if it is in a loop or one specific device) the value stays undefined and I have no clue why. This script works perfectly on my friend’s old Homey Pro.

I was wondering if this is a bug in the new Homey Pro or if I’m doing something wrong?

Below is an example of what is returned. I redacted some ID’s for security purposes:

t {
__athom_api_type: ‘HomeyAPI.ManagerFlowToken.FlowToken’,
id: ‘measure_temperature’,
ownerId: ‘measure_temperature’,
ownerUri: ‘homey:device:ID’,
ownerName: ‘Weerstation’,
type: ‘number’,
title: ‘Temperature’,
example: null,
uri: ‘homey:device:ID’,
uriObj: { name: ‘Weerstation’ },
value: undefined
}

Thank you for your help!

11 posts - 5 participants