Hi all
As per this topic, number input selectors from the blueprint are being written between quotes, making them a string. My automation does require them to be a number, otherwise it doesn’t work.
Is there any way to get this done easily? Or is there any feature request open for this?
This is my blueprint
blueprint:
name: Create event on deconz event
description: Trigger a custom event once a specific deconz event has been raised.
domain: automation
input:
trigger_device:
name: Device trigger
description: Device that triggers the automation in the deconz_event (listen to deconz_event for more info)
device_event:
name: Event trigger
description: Event that triggers the automation in the deconz_event (listen to deconz_event for more info)
selector:
number:
new_event_name:
name: New Event Name
description: Name of the new custom event that will be generated
trigger:
- platform: event
event_type: deconz_event
event_data:
id: !input trigger_device
event: !input device_event
action:
- event: !input new_event_name
mode: queued
max: 10
This is the resulting automation
alias: Create event on deconz event - Office remote hold down button
description: ''
use_blueprint:
path: homeassistant/create_event_on_deconz_event.yaml
input:
device_event: '3001'
trigger_device: office_remote
new_event_name: office_remote_down_button_hold
The “device_event” should be written without the " ’ ".
Thanks!