Skip to content

Uri on new homey pro undefined #49

@Kenyre

Description

@Kenyre

The following piece of code:

const conditionCards = await Homey.flow.getFlowCardConditions();
for( const card of conditionCards ) {
  console.log(card.uri, card.id)
}

prints undefined for the uri all flow cards (both and + then cards):

undefined homey:manager:flow:is_enabled
undefined homey:manager:mobile:push_confirm
undefined homey:manager:logic:equal
undefined homey:manager:logic:equal_boolean
undefined homey:manager:alarms:is_enabled
undefined homey:manager:cron:time_between
undefined homey:manager:logic:contains
undefined homey:manager:cron:date_equals
undefined homey:manager:logic:lt
undefined homey:manager:cron:date_between
undefined homey:manager:logic:gt
undefined homey:manager:cron:day_month_equals
undefined homey:manager:logic:random
undefined homey:manager:cron:day_equals
undefined homey:manager:logic:equation

Which in turn also seems to affect running the flowcards, as the default example-flowcard-run.js prints:

———————————————————
❌ Script Error
⚠️ Not Found: FlowCardCondition with ID day_equals: Not Found: FlowCardCondition with ID day_equals
    at /app/node_modules/athom-api/dist/index.js:1:1247257
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Apologies if this is because it is still early access and not compatible yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions