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

 找回密码
 立即注册
楼主: XCray

【完整方案】利用实测(体感)温度更加准确地控制空调

[复制链接]

1

主题

31

帖子

230

积分

中级会员

Rank: 3Rank: 3

积分
230
金钱
199
HASS币
0
发表于 2021-7-4 19:24:23 | 显示全部楼层
dscao 发表于 2021-7-3 01:17
是的,参考楼主的帖子。

谢谢,前两天我试了一下,体感温度有点高。。温度设定有点摸不着头脑,我又改回node-red里控制了
回复

使用道具 举报

8

主题

229

帖子

1994

积分

金牌会员

Rank: 6Rank: 6

积分
1994
金钱
1765
HASS币
0
发表于 2021-8-11 21:57:31 | 显示全部楼层
dscao 发表于 2021-6-11 16:30
在本帖子指导下,花了几天时间优化自动化,几十次的调试及测试,分享一下自动化给有需要的朋友。

目前只用 ...

虚拟温控器的制冷的图标怎么弄的,climate的配置文件给我抄一下
回复

使用道具 举报

76

主题

1356

帖子

1万

积分

元老级技术达人

积分
18057
金钱
16661
HASS币
290
发表于 2021-8-12 14:47:16 | 显示全部楼层
xiaopi 发表于 2021-8-11 21:57
虚拟温控器的制冷的图标怎么弄的,climate的配置文件给我抄一下
climate:
  - platform: generic_thermostat
    name: 恒温器(制冷)
    heater: switch.heater
    target_sensor: sensor.woshiapptemp #体感温度
    min_temp: 25
    max_temp: 33
    ac_mode: true
    target_temp: 30
    cold_tolerance: 1
    hot_tolerance: 1
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "off"   #off 关,heat 加热设备,cool 制冷设备
    precision: 0.1
回复

使用道具 举报

8

主题

36

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
134
HASS币
0
发表于 2021-8-16 09:38:03 | 显示全部楼层
斑竹,我家里的空调就是温控器坏了,经常失灵制冷不停歇。您这个帖子就是我想要的。
但是目前我测试了一些简单的自动化都总是不成功,没触发。希望能得到一点入门的指点。
回复

使用道具 举报

98

主题

2866

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
11435
金钱
8504
HASS币
460

教程狂人突出贡献

 楼主| 发表于 2021-8-16 09:54:25 | 显示全部楼层
gsdv 发表于 2021-8-16 09:38
斑竹,我家里的空调就是温控器坏了,经常失灵制冷不停歇。您这个帖子就是我想要的。
但是目前我测试了一些 ...

其实这个帖子的方法有些过于复杂了,体感温度也没有预想的好使。

建议就用“Generic Thermostat”这个组件,连自动化都不用设置,简单又好看。

当然,不用这个虚拟温控器也可以,设置两个简单的自动化:温度传感器数值高于门限就打开制冷、低于门限就关闭制冷。
回复

使用道具 举报

8

主题

36

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
134
HASS币
0
发表于 2021-8-16 09:59:08 | 显示全部楼层
XCray 发表于 2021-8-16 09:54
其实这个帖子的方法有些过于复杂了,体感温度也没有预想的好使。

建议就用“Generic Thermostat”这个组 ...

多谢指点。
我刚装ha没多久。现在测试的就是根据温度计温度控制空调切换制冷送风模式。请问能帮我看看这个设置的问题出在哪里吗?
https://bbs.hassbian.com/thread-13816-1-1.html
回复

使用道具 举报

4

主题

211

帖子

1537

积分

论坛积极会员

积分
1537
金钱
1326
HASS币
0
发表于 2021-8-21 01:30:24 | 显示全部楼层
我是直接在米家里做的智能场景。
在合适的位置放了个温湿度传感器,自己根据体感温差,看这个传感器的数值变化,在感觉需要开空调的时候把空调温度调到26℃以下,比如23℃;在感觉需要停止制冷的时候,把空调的温度调高,比如29℃,最终只是干涉空调的制冷动作而已。
主要也是因为老空调,不是变频的,在空调不制冷的时候自动开启米家直流变频落地扇,在空调制冷的时候关闭。这么下来体验好了不少。
回复

使用道具 举报

32

主题

1983

帖子

5033

积分

论坛元老

Rank: 8Rank: 8

积分
5033
金钱
3050
HASS币
50
QQ
发表于 2021-9-11 00:47:06 | 显示全部楼层
大佬的贴必收藏,慢慢嗑。
我不生产技术,我只是技术的搬运工。
回复

使用道具 举报

3

主题

33

帖子

167

积分

注册会员

Rank: 2

积分
167
金钱
134
HASS币
0
发表于 2022-6-19 11:13:00 | 显示全部楼层
大神,我经过测试发现这个方案还有个问题,不知道怎么解决:
1. 即使设置了00:30:00,还是会出现连续1~2分钟里调温好几次的情况.

我尝试过多种时间设置,如5分钟、15分钟等,发现自动调温的触发并没有规律.

贴上我的自动化代码.
alias: 自动调温
description: 根据hatherm表盘设定自动调温
trigger:
  - platform: state
    entity_id: climate.hatherm
    for:
      hours: 0
      minutes: 10
      seconds: 0
condition:
  - condition: state
    entity_id: climate.midea_ac_160528703464305
    state: cool
  - condition: template
    value_template: >-
      {{
      not((state_attr('climate.hatherm','current_temperature')>state_attr('climate.hatherm','temperature')
      and
      state_attr('climate.midea_ac_160528703464305','min_temp')==state_attr('climate.midea_ac_160528703464305','temperature')
          or
          state_attr('climate.hatherm','current_temperature')<=state_attr('climate.hatherm','temperature') and state_attr('climate.midea_ac_160528703464305','max_temp')==state_attr('climate.midea_ac_160528703464305','temperature'))) }}
action:
  - service: climate.set_temperature
    target:
      entity_id: climate.midea_ac_160528703464305
    data:
      temperature: >
        {% if
        state_attr('climate.hatherm','current_temperature')>state_attr('climate.hatherm','temperature')
        %}
           {{state_attr('climate.midea_ac_160528703464305','temperature')-0.5}}
        {% else %}
           {{state_attr('climate.midea_ac_160528703464305','temperature')+0.5}}
        {% endif%}
mode: single
回复

使用道具 举报

3

主题

33

帖子

167

积分

注册会员

Rank: 2

积分
167
金钱
134
HASS币
0
发表于 2022-6-19 11:14:37 | 显示全部楼层
    value_template: >-
      {{
      not((state_attr('climate.hatherm','current_temperature')>state_attr('climate.hatherm','temperature')
      and
      state_attr('climate.midea_ac_160528703464305','min_temp')==state_attr('climate.midea_ac_160528703464305','temperature')
          or
          state_attr('climate.hatherm','current_temperature')<=state_attr('climate.hatherm','temperature') and state_attr('climate.midea_ac_160528703464305','max_temp')==state_attr('climate.midea_ac_160528703464305','temperature'))) }}


这段代码是按你的代码复制进去了,只改了空调的entity_id,但只要保存就会变成目前这个样子,好像和你原本的代码有点不一样,不知道问题是不是出在这里.
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 11:20 , Processed in 0.173849 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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