apache_conf [家庭助理 - Tasmota]
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf [家庭助理 - Tasmota]相关的知识,希望对你有一定的参考价值。
# Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant: configuration.yaml
# One click upgrade all Sonoff-Tasmota devices, check the current installed and latest available version of firmware.
# Twitter link: https://goo.gl/e3y7pa
#
# 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA
# OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin
#
# 2. Below the Home Assistant configuration:
script:
check_sonoffs_version:
sequence:
- service: mqtt.publish
data_template:
topic: "cmnd/sonoffs/status"
payload: 2
update_sonoffs:
sequence:
- service: mqtt.publish
data_template:
topic: "cmnd/sonoffs/upgrade"
payload: 1
sensor:
- platform: rest
name: Sonoff latest release
resource: https://api.github.com/repos/arendst/Sonoff-Tasmota/releases/latest
value_template: '{{ value_json.tag_name }}'
headers:
Accept: application/vnd.github.v3+json
Content-Type: application/json
User-Agent: Home Assistant REST sensor
- platform: mqtt
name: Sonoff 01 Version
state_topic: "stat/sonoff01/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 02 Version
state_topic: "stat/sonoff02/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 03 Version
state_topic: "stat/sonoff03/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 04 Version
state_topic: "stat/sonoff04/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 05 Version
state_topic: "stat/sonoff05/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 06 Version
state_topic: "stat/sonoff06/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
- platform: mqtt
name: Sonoff 07 Version
state_topic: "stat/sonoff07/STATUS2"
value_template: "{{ value_json['StatusFWR'].Version }}"
以上是关于apache_conf [家庭助理 - Tasmota]的主要内容,如果未能解决你的问题,请参考以下文章
家庭助理的配置UI
家庭助理 - 请求失败错误代码 400
使用TASM编译COFF格式和连接
TASM 5.0 安装及使用教程
Google 智能助理,支持多种语言功能!
TASM报错argument needs type override的解决办法