『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 5588|回复: 0

[已解决] 关于叮咚只能开不能关(已解决)

[复制链接]

7

主题

155

帖子

657

积分

高级会员

Rank: 4

积分
657
金钱
501
HASS币
0
发表于 2017-11-28 05:39:50 | 显示全部楼层 |阅读模式
本帖最后由 yukinghong 于 2017-12-2 12:21 编辑

叮咚也连接好了,只是用SONOFF CH4只能开不能关是怎么回事!?有谁遇到过吗?

已解决更新了固件,
下载地址:https://github.com/arendst/Sonoff-Tasmota/releases
1.先下载sonoff-minimal.bin保证能用OTA刷机,再下载sonoff.bin更新固件。
2.sonoff ch4上代码如下:
switch:
  - platform: mqtt
    name: SONOFF4CH1
    state_topic: "stat/sonoff/POWER1"
    command_topic: "cmnd/sonoff/POWER1"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: true
  - platform: mqtt
    name: SONOFF4CH2
    state_topic: "stat/sonoff/POWER2"
    command_topic: "cmnd/sonoff/POWER2"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false
  - platform: mqtt
    name: SONOFF4CH3
    state_topic: "stat/sonoff/POWER3"
    command_topic: "cmnd/sonoff/POWER3"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false
  - platform: mqtt
    name: SONOFF4CH4
    state_topic: "stat/sonoff/POWER4"
    command_topic: "cmnd/sonoff/POWER4"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false   


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 02:38 , Processed in 0.611539 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表