添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
谦逊的毛豆  ·  cmd move命令 ...·  10 月前    · 
魁梧的酸菜鱼  ·  Form - Ant Design·  1 年前    · 
小眼睛的灭火器  ·  反垄断局·  1 年前    · 

This rule referring to an existing (and in my opinion defined) item …

if (items[SiemensBackofen_PowerState]=="ON") {events.sendCommand("v_schalter_backofen_tur_schon_geoffnet","ON");}   

… leads to this message in frontail log viewer:

2021-04-13 19:32:54.661 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'Backofen_Tur_geoffnet_setzen' failed: ReferenceError: "SiemensBackofen_PowerState" is not defined in <eval> at line number 1

…although the item does exist:
image980×1083 28.3 KB

Does anybody have an explanation for that?

No that was not it. But with a fresh look at it, I saw the (in hindsight) obvious: I forgot the “”
It’s got to be:

if (items["SiemensBackofen_PowerState"]=="ON")