@
shaunn #5 其实我就是搞了个 hss 的自定义组件写了算法来依据室内外温度湿度和风速来计算体感温度,然后再通过这个算出来的体感温度通过 hss 的自动化来控制空调,自动化里又添加了时间和是否在家、是否即将到家等其它条件再开关空调且设定不同温度
https://github.com/snower/homeassistant/tree/main/custom_components/apparent_temperature算体感温度的算法就是这个
sensor:
- platform: apparent_temperature
name: "室内体感温度"
unique_id: "sensor.shi_nei_ti_gan_wen_du"
temperature_sensor: "sensor.v1_cloud_9ad320_temperature"
humidity_sensor: "sensor.v1_cloud_9ad320_humidity"
outdoor_temperature_sensor: "sensor.v1_cloud_bfa384_temperature"
outdoor_humidity_sensor: "sensor.v1_cloud_bfa384_humidity"
indoor_wind_speed: "0.2"
humidity_role_coefficient: "0.2"
- platform: apparent_temperature
name: "室外体感温度"
unique_id: "sensor.shi_wai_ti_gan_wen_du"
weather_sensor: "weather.wo_de_jia"
temperature_sensor: "sensor.v1_cloud_bfa384_temperature"
humidity_sensor: "sensor.v1_cloud_bfa384_humidity"
outdoor_wind_resistance: "0.6"
temperature_convection_coefficient: "0.24"
humidity_role_coefficient: "1.0"
配置文件设置了两个 sensor ,室内体感温度和室外体感温度
参数:
weather_sensor #天气传感器实体 ID
temperature_sensor #室内温度传感器实体 ID
humidity_sensor #室内湿度传感器实体 ID
outdoor_temperature_sensor #室外温度传感器实体 ID
outdoor_humidity_sensor #室外湿度传感器实体 ID
indoor_wind_speed #室内风速
outdoor_wind_resistance #室外风阻系数
humidity_role_coefficient #室内湿度影响系数
temperature_convection_coefficient #温度对流系数
humidity_convection_coefficient #湿度对流系数
本身来说还是看室内外温差、天气对流和辐射因素会体感温度会有明显差距,天气晴朗白天室外 10 度室内 18 度感觉都热了,凌晨室外 10 度室内 18 度估计你都感觉冷死,省电来源看起来是来自体感暖和就很快关闭空调