I’ve expanded the capabilities of the wallbox project by introducing new features and incorporating additional flow trigger cards. Currently, when the value of the new capability changes, the associated flow trigger card successfully activates. However, I’ve encountered an issue where the trigger fails to activate when I specify conditions such as ‘less than’ or ‘greater than’ a certain value.
In the onInit function, I’ve registered a listener to monitor changes in the new capability. Despite this setup, the trigger cards do not respond as expected to the specified conditions.
this.registerCapabilityListener(‘charging_price’, async (value) => {
this.log(‘charging_price_greater_than :’, value)
});
and this in app.json and driver.flow.compose.jscon
{
“id”: “charging_price_greater_than”,
“title”: {
“en”: “The charging price becomes greater than”,
“nl”: “De laadprijs wordt groter dan”,
“fr”: “Le prix de facturation devient supérieur à”
},
“titleFormatted”: {
“en”: “The charging price becomes greater than [[price]]”
},
“args”: [
{
“type”: “device”,
“name”: “device”,
“filter”: “driver_id=wallbox”
},
{
“type”: “number”,
“name”: “price”,
“filter”: “driver_id=wallbox”,
“placeholder”: {
“en”: “Energy price”
}
}
]
}
Did anyone faced some issue like this or can help me to solve this problem?Preformatted text