I’m working on some Blockly blocks and get a Log warning whnever i use the block and save the rule.
This is the Block code;
uid: telegram_with_chatid_new
tags: []
props:
parameters: []
parameterGroups: []
timestamp: Aug 23, 2022, 11:20:25 AM
component: BlockLibrary
config:
name: Telegram-with-ChatID
slots:
blocks:
- component: BlockType
config:
args0:
- name: MESSAGE
type: input_value
- name: BOT
type: input_value
- name: CHAT_ID_option
options:
- - with Chat-ID
- >
({{input:CHAT_ID}},{{input:MESSAGE}});
- - without Chat-ID
- >
({{input:MESSAGE}});
type: field_dropdown
- name: CHAT_ID
type: input_value
colour: "#2ea5d8"
helpUrl: ""
inputsInline: false
lastDummyAlign0: right
message0: send on Telegram %1 from bot %2 %3 %4
nextStatement: ""
previousStatement: ""
tooltip: ""
type: message
slots:
code:
- component: BlockCodeTemplate
config:
template: >
{{utility:things}}.getActions('telegram',{{input:BOT}}).sendTelegram{{field:CHAT_ID_option}}
toolbox:
- component: PresetInput
config:
fields:
TEXT: What's up?
name: MESSAGE
shadow: true
type: text
- component: PresetInput
config:
name: BOT
shadow: true
type: oh_thing
- component: PresetInput
config:
fields:
NUM: 0
name: CHAT_ID
shadow: true
type: math_number
utilities:
- component: UtilityJavaType
config:
javaClass: org.openhab.core.model.script.actions.Things
name: things
The Block is producing the correct code but i get this warning when i save the rule, though the rule is working as expected.
2022-08-23 11:20:53.729 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:CHAT_ID}} , it will remain the same.
2022-08-23 11:20:53.736 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:MESSAGE}} , it will remain the same.
I get the same Warn with a block from the Marketplace library Common Blocks.
2022-08-23 11:34:04.372 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:CHAT_ID}} , it will remain the same.
2022-08-23 11:34:04.375 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:MESSAGE}} , it will remain the same.
2022-08-23 11:34:04.377 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:timer_name}} , it will remain the same.
2022-08-23 11:34:04.379 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{field:duration_unit}} , it will remain the same.
2022-08-23 11:34:04.381 [WARN ] [automation.internal.RuleRegistryImpl] - Cannot find reference for {{input:duration}} , it will remain the same.
has anybody an idea what is wrong?
Roli