找回密码
 立即注册

微信扫码登录

搜索
查看: 540|回复: 8

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

[复制链接]

1

主题

33

回帖

287

积分

中级会员

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

使用道具 举报

3

主题

43

回帖

490

积分

中级会员

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

使用道具 举报

7

主题

202

回帖

1174

积分

金牌会员

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

下雨播报流程发一下
回复

使用道具 举报

0

主题

89

回帖

601

积分

高级会员

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

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

使用道具 举报

47

主题

307

回帖

2576

积分

金牌会员

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


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

使用道具 举报

3

主题

43

回帖

490

积分

中级会员

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


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

使用道具 举报

3

主题

43

回帖

490

积分

中级会员

积分
490
金钱
444
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
回复

使用道具 举报

1

主题

30

回帖

188

积分

注册会员

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

使用道具 举报

3

主题

43

回帖

490

积分

中级会员

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

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-2 15:59 , Processed in 0.058931 second(s), 11 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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