随笔分类 -  iot

摘要:1、关于433MHZ 、315MHZ 的相关的模块 发送与接收是单独的调制芯片。这块某宝上有很多,芯片也有很多,一般是8脚的芯片。发射芯片的话,有一个脚是天线接口,一个脚是编码芯片的序列输出的高低电平。发送芯片把这些高低电平调制后,发射出去。 接收芯片把信号接收到之后,它把结果(高低电平)输出到解码 阅读全文
posted @ 2024-04-07 22:54 xunhanliu 阅读(122) 评论(0) 推荐(0) 编辑
摘要:我们已经知道User 等保存是直接以json的形式直接保存到文件中。 先说结论:设备的检测历史默认保存在sqlite中 The default, and recommended, database engine is SQLite which does not require any configu 阅读全文
posted @ 2024-02-21 16:51 xunhanliu 阅读(141) 评论(0) 推荐(0) 编辑
摘要:程序中搜索User, 很容易命中homeassistant/auth/models.py 程序中大量使用了attr.s 进行模型的声明。上篇说过dataclass,以及BaseModel , 区别见: https://www.modb.pro/db/412679 文件中定义了5个模型,这里只需要猜测 阅读全文
posted @ 2024-02-21 16:27 xunhanliu 阅读(359) 评论(0) 推荐(0) 编辑
摘要:core 源码地址 : https://github.com/home-assistant/core/tree/master core 与其他container等版本区别见: https://www.home-assistant.io/installation/ 入口: homeassisstant 阅读全文
posted @ 2024-02-21 15:22 xunhanliu 阅读(244) 评论(0) 推荐(0) 编辑

    点击右上角即可分享
    微信分享提示