找回密码
 立即注册

微信扫码登录

搜索
查看: 2472|回复: 11

[流程系列] 分享交流一些自用流程

[复制链接]

1

主题

39

回帖

329

积分

中级会员

积分
329
金钱
289
HASS币
0
发表于 2025-7-24 11:54:29 | 显示全部楼层 |阅读模式
大家给点好用的建议啊。。 image.png image.png image.png
回复

使用道具 举报

6

主题

132

回帖

937

积分

高级会员

积分
937
金钱
799
HASS币
0
发表于 2025-7-24 13:04:13 | 显示全部楼层
这里的保存到全局是做什么用的呀?
我目前在用的个人觉得比较实用的有:
1. https://github.com/dscao/travel_time 每天闹钟响的时候播报通勤时间
2. 用CalDAV集成手机日历,睡前播报第二天日历,如果日历有地址信息的话,播报通勤时间和目的地天气
3. Frigate监控猫厕所,记录猫上厕所次数,提醒铲屎
4. 回家小爱主动问询、空气质量、低电量传感器播报
5. 人在家且未睡觉时,下雨及自然灾害语音播报
回复

使用道具 举报

10

主题

232

回帖

1466

积分

金牌会员

积分
1466
金钱
1224
HASS币
0
发表于 2025-7-24 14:24:24 | 显示全部楼层
a784174467 发表于 2025-7-24 13:04
这里的保存到全局是做什么用的呀?
我目前在用的个人觉得比较实用的有:
1. https://github.com/dscao/trav ...

下雨播报流程发一下
回复

使用道具 举报

0

主题

98

回帖

749

积分

高级会员

积分
749
金钱
651
HASS币
0
发表于 2025-7-24 16:20:06 | 显示全部楼层
a784174467 发表于 2025-7-24 13:04
这里的保存到全局是做什么用的呀?
我目前在用的个人觉得比较实用的有:
1. https://github.com/dscao/trav ...

老铁,可以分享一下成果吗
回复

使用道具 举报

52

主题

376

回帖

3107

积分

论坛元老

积分
3107
金钱
2679
HASS币
10
发表于 2025-7-24 16:20:29 | 显示全部楼层
image.png


空调基于温度传感器 自动控制开关
回复

使用道具 举报

6

主题

132

回帖

937

积分

高级会员

积分
937
金钱
799
HASS币
0
发表于 2025-7-25 14:32:06 | 显示全部楼层
本帖最后由 a784174467 于 2025-7-25 14:33 编辑


                               
登录/注册后可看大图
5 entities at.png
debug 7.png
O running.png
回复

使用道具 举报

6

主题

132

回帖

937

积分

高级会员

积分
937
金钱
799
HASS币
0
发表于 2025-7-25 14:34:59 | 显示全部楼层
aabbcc7788 发表于 2025-7-24 16:20
老铁,可以分享一下成果吗

天气用到的template
- sensor:
    - name: 一小时天气预警
      state: '{% if ("雨" in states.weather.tian_qi.attributes.hourly_forecast[0].text) %}{{states.weather.tian_qi.attributes.hourly_forecast[0].datetime}}降雨概率为:{{states.weather.tian_qi.attributes.hourly_forecast[0].precipitation}},可能{{states.weather.tian_qi.attributes.hourly_forecast[0].text}},请多加注意!{% else %}未来一小时无不良天气{% endif %}'
    - name: 自然灾害预警最新一条
      #state: '{% if ("当前无灾害预警" in states.weather.tian_qi.attributes.warning[0].text) %}当前无自然灾害预警信息{% else %}{{ states.weather.tian_qi.attributes.warning[0].pubTime}}{% endif %}'
      state: >-
        {% if states.weather.tian_qi.attributes.warning is defined and states.weather.tian_qi.attributes.warning | length > 0 %}
          {% set warning = states.weather.tian_qi.attributes.warning[0] %}
          {{ warning.pubTime}}
        {% else %}
          当前无自然灾害预警信息 {# 如果没有预警,显示这个友好的提示,而不是报错 #}
        {% endif %}
      attributes:
        title: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %} {{ states.weather.tian_qi.attributes.warning[0].title}} {% else %}null{% endif %}"
        text: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].text }} {% else %}null{% endif %}"
        pubTime: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].pubTime}} {% else %}null{% endif %}"
        startTime: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].startTime}} {% else %}null{% endif %}"
        endTime: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].endTime}} {% else %}null{% endif %}"
        sender: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].sender}} {% else %}null{% endif %}"
        severity: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].severity}} {% else %}null{% endif %}"
        severityColor: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].severityColor}} {% else %}null{% endif %}"
        level: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].level}} {% else %}null{% endif %}"
        typeName: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning[0].typeName}} {% else %}null{% endif %}"
        all: "{% if ('当前无灾害预警' not in states.weather.tian_qi.attributes.warning[0].text) %}{{ states.weather.tian_qi.attributes.warning}} {% else %}null{% endif %}"


5 entities at.png
debug 7.png
O running.png
回复

使用道具 举报

3

主题

61

回帖

339

积分

中级会员

积分
339
金钱
275
HASS币
0
发表于 2025-7-30 16:35:53 | 显示全部楼层
出门2分钟后,检查家中电器是否有未关闭的(比如灯或者空调),有的话直接在app客户端弹窗并且控制关闭
回复

使用道具 举报

6

主题

132

回帖

937

积分

高级会员

积分
937
金钱
799
HASS币
0
发表于 2025-7-31 11:40:25 | 显示全部楼层
Hinata 发表于 2025-7-30 16:35
出门2分钟后,检查家中电器是否有未关闭的(比如灯或者空调),有的话直接在app客户端弹窗并且控制关闭 ...

请问这个需要内网穿透吗?
回复

使用道具 举报

1

主题

39

回帖

329

积分

中级会员

积分
329
金钱
289
HASS币
0
 楼主| 发表于 2025-8-4 19:57:04 | 显示全部楼层
Hinata 发表于 2025-7-30 16:35
出门2分钟后,检查家中电器是否有未关闭的(比如灯或者空调),有的话直接在app客户端弹窗并且控制关闭 ...

每个灯都有人在传感器控制   空调就门窗开启一定时间关闭
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2026-1-9 19:54 , Processed in 0.068326 second(s), 10 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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