请帮助!

在hassio从0.94更新到096.3之后,IFTTT的自动化不能工作,它说这个动作是不支持的。

2

您只是向我们展示了自动化,而没有展示作为服务的内容。如果不查看这个对象中正在发送的内容,就没有办法提供帮助{{trigger.event.data.service}}

但我按照指令(从IFTTT发送事件到家庭助理)19463331伟德国际//www.sz-tiancheng.com/components/ifttt/
这种自动化仍然在版本0.94中运行。
更新到0.96 3后,出现如下错误

好吧,但你还没有给我们展示webhook的主体部分。那我们要怎么帮你?服务来自身体。您得到的错误是关于服务的,特别是value属性。再问一次,如果我们看不见进来的东西,我们怎么帮你呢?

  1. 我们需要知道你通过的是什么服务。
  2. 然后我们再决定天气价值对上述服务有效。

现在,Home助理说价19463331伟德国际值在某种程度上是无效的形状或形式提供的服务。

我也有类似的问题。但我的错误是“不允许额外的键。@ data['行动']。以下是我在automations.yaml中的内容:

  • id:“123456798”
    别名:自动化IFTTT
    触发:
    平台:事件
    event_type: ifttt_webhook_received
    event_data:
    行动:call_service
    行动:
    Service_template: ' {{trigger.event.data.service}} '
    data_template:
    entity_id: {{trigger.event.data。entity_id}}’

这是我的Webhook body:

{" action ": " call_service ", " service ": " script. "turn_on”、“entity_id”:“脚本。test_telegram "}

我不知道我做错了什么,有人能帮忙吗?

我猜你的间隔是错的,但你没有格式化你的代码。

看一下这个线程,第11步找出如何正确格式化代码。然后编辑你的帖子,使其格式正确。一旦这样,我可以帮你。

- id: '1563986874121' alias: automated IFTTT trigger: platform: event event_type: ifttt_webhook_received event_data: action: call_service action: service_template: '{{trigger.event.data.service}}' data_template: entity_id: '{{trigger.event.data.service}}'entity_id}}’

对不起。我没有意识到,当我把代码粘贴到这里时,它会删除空格。但以上是我的automations.yaml中实际存在的内容

你们还有其他类似的自动化系统吗?这个自动化的间距和格式看起来正确,你的webhook是正确的设置。我不认为这种自动化有什么问题。

我能看到的与其他自动化在格式上的唯一区别是-的使用

—id:“123456789”alias: XXXX is at the house trigger:—entity_id: person。操作:—data: message: xxxx is at the house target:—‘123456789’service: notify.discord . conf . conf . conf . conf . conf . conf

我试过在纲领和行动线上加上-但没有效果。
当我使用开发选项时,服务ifttt。触发并输入业务数据{"action": "call_service", "service": "input_boolean. service";turn_on”、“entity_id ": " input_boolean.person_home "}我得到错误'额外的键不允许@ data['行动']

自动化之后的直接问题是什么?

还有,这是做什么的?

- id: '1563986874121' alias: automated IFTTT trigger: platform: event event_type: ifttt_webhook_received condition: - condition: template value_template: > {{trigger.event.data.action == 'call_service'}} action: service_template: '{{trigger.event.data.service}}' data_template: entity_id: '{{trigger.event.data.service}}entity_id}}’

这个自动化是我的自动化的最后一个。所以没有东西在追它。您想让我用您上面写的自动化替换我的自动化并测试它吗?

使用你的代码给我同样的错误。

你能从日志中粘贴完整的错误吗?

2019-07-25 15:33:28 ERROR (MainThread) [home helper .components.websocket_api.http.connection.1798770128] extra keys not allowed @ data[' action ']
回溯(最近的最后一次调用):
文件" /usr/src/homeassistant/homeassistant/components/websocket_api/commands.py ",第121行,在handle_call_service中
connection.context(味精))
文件" /usr/src/homeassistant/homeassistant/core.py ", 1130行,在async_call中
processed_data = handler.schema (service_data)
文件" /usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py ",第267行,在调用
回归自我。_compiled([],数据)
文件" /usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py ",第589行,在validate_dict中
返回base_validate(path, iteritems(data), out)
文件" /usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py ",第427行,在validate_mapping中
提高er.MultipleInvalid(错误)
voluptuous.error.MultipleInvalid:不允许额外的键@ data[' action ']

当您删除这个自动化时,这个错误仍然存在吗?我根本不明白这个错误是如何指向自动化的。