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

 找回密码
 立即注册
查看: 952|回复: 8

[技术探讨] 自动化设置路由器温度超过48度降温

[复制链接]

2

主题

28

帖子

228

积分

中级会员

Rank: 3Rank: 3

积分
228
金钱
200
HASS币
0
发表于 2023-6-11 15:08:07 | 显示全部楼层 |阅读模式
自动化设置路由器温度超过48度,小于100度,开启插座进行降温,跟踪执行不成功,不知道啥问题
alias: 降温
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.miwifi_f0_b4_29_55_a4_af_temperature
    above: 48
    below: 100
condition: []
action:
  - service: xiaomi_miot.intelligent_speaker
    data:
      execute: false
      silent: false
      throw: false
      entity_id: media_player.xiaomi_lx5a_d028_play_control
      text: 开启风扇降温
  - type: turn_on
    device_id: b34e99d840dfbf891fa68cdf375851a6
    entity_id: switch.shui_li_xiao_qu_socket_2
    domain: switch
mode: single

回复

使用道具 举报

8

主题

146

帖子

1707

积分

金牌会员

Rank: 6Rank: 6

积分
1707
金钱
1561
HASS币
0
发表于 2023-6-11 15:47:39 | 显示全部楼层
本帖最后由 hassfan 于 2023-6-11 17:06 编辑

参考一下:
https://bbs.hassbian.com/thread-460-1-1.html

回复

使用道具 举报

19

主题

479

帖子

2668

积分

金牌会员

Rank: 6Rank: 6

积分
2668
金钱
2189
HASS币
30
发表于 2023-6-11 16:19:58 | 显示全部楼层
可能是你一开始的自动化就已经在这个区间内了
我都用nr,对ha自带的自动化不是很熟悉
不过一般自动化判断的,似乎是“变化”,而不是“处在”
从47度变化到50度,就触发自动化
但如果你配置好的时候,它温度就已经是50度了,那就不会有变化,要一直等到跌到48以下,再升回来,就触发
回复

使用道具 举报

2

主题

28

帖子

228

积分

中级会员

Rank: 3Rank: 3

积分
228
金钱
200
HASS币
0
 楼主| 发表于 2023-6-11 17:19:05 | 显示全部楼层
hassfan 发表于 2023-6-11 15:47
参考一下:
https://bbs.hassbian.com/thread-460-1-1.html

多谢,我看看
回复

使用道具 举报

2

主题

28

帖子

228

积分

中级会员

Rank: 3Rank: 3

积分
228
金钱
200
HASS币
0
 楼主| 发表于 2023-6-11 17:20:09 | 显示全部楼层
wdmywm3 发表于 2023-6-11 16:19
可能是你一开始的自动化就已经在这个区间内了
我都用nr,对ha自带的自动化不是很熟悉
不过一般自动化判断的 ...

确实,我配置的时候已在这个区间, 我再结合上面兄弟给的链接再改改
回复

使用道具 举报

41

主题

1314

帖子

5389

积分

论坛元老

Rank: 8Rank: 8

积分
5389
金钱
4070
HASS币
20
发表于 2023-6-11 19:58:58 | 显示全部楼层
路由器还得降温,那可以换了
折腾精神永存,感恩感谢论坛每一位愿意分享和帮助过我的大佬,论坛有你更精彩
回复

使用道具 举报

2

主题

28

帖子

228

积分

中级会员

Rank: 3Rank: 3

积分
228
金钱
200
HASS币
0
 楼主| 发表于 2023-6-11 20:11:51 | 显示全部楼层
jjcs 发表于 2023-6-11 19:58
路由器还得降温,那可以换了

只是用来测试一些东西, 如果能正常就会将这个自动化转成别的用处
回复

使用道具 举报

16

主题

216

帖子

1506

积分

金牌会员

Rank: 6Rank: 6

积分
1506
金钱
1290
HASS币
0
发表于 2023-6-11 21:48:48 | 显示全部楼层
给你看下我的浴霸自动开启
alias: 客卫浴霸温度超25开通风
description: ""
trigger:
  - platform: device
    type: turned_on
    device_id: fd568d04223731d5f1777c7cad6f96bc
    entity_id: switch.zhu_wei_l1
    domain: switch
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition:
  - condition: numeric_state
    entity_id: climate.yeelink_v6_1e9f_ptc_bath_heater
    attribute: current_temperature
    above: 25
    below: 35
  - condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
    after: "19:00:00"
    before: "23:00:00"
action:
  - device_id: 59437c8bc302080ac95e9b915288cffe
    domain: select
    entity_id: select.yeelink_v6_1e9f_cold_mode
    type: select_option
    option: High
  - delay:
      hours: 0
      minutes: 8
      seconds: 0
      milliseconds: 0
  - device_id: 59437c8bc302080ac95e9b915288cffe
    domain: select
    entity_id: select.yeelink_v6_1e9f_cold_mode
    type: select_option
    option: "Off"
  - if:
      - condition: device
        type: is_off
        device_id: fd568d04223731d5f1777c7cad6f96bc
        entity_id: switch.zhu_wei_l1
        domain: switch
      - condition: device
        type: is_off
        device_id: fd568d04223731d5f1777c7cad6f96bc
        entity_id: switch.zhu_wei_l2
        domain: switch
    then:
      - device_id: 59437c8bc302080ac95e9b915288cffe
        domain: select
        entity_id: select.yeelink_v6_1e9f_cold_mode
        type: select_option
        option: "Off"
mode: single
回复

使用道具 举报

2

主题

28

帖子

228

积分

中级会员

Rank: 3Rank: 3

积分
228
金钱
200
HASS币
0
 楼主| 发表于 2023-6-12 22:22:43 | 显示全部楼层
kaka0992 发表于 2023-6-11 21:48
给你看下我的浴霸自动开启

多谢兄台!!!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-8 18:39 , Processed in 0.051158 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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