当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

hass_config

授权协议 MIT License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 贝嘉泽
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Home Assistant configuration

Attention!

This is an outdated and discontinued (and possibly obsolete) package, I moved to another house and started again, this time using HASS.io.

You can find the new configuration here.


My personal Home Assistant configuration. Used for automate my home devices:

  • 9 Hue lights in three rooms
  • 8 Etekcity RF outlets
  • 1 custom electrical current probe (enerPI pet project), which is working in HA as as custom_component (code)
  • KODI RPI3 (OSMC) with a TV turner, access to the local Media Collection, and Hyperion controlling some Hue lights.
  • Multiple RPI's (1x RPI rev B, 2x RPI_2, 3x RPI_3) running KODI, MPD, other instances of HA, multiple sensors and more nerd stuff.
  • ...

The hass instance runs in one dedicated, ethernet-connected, Raspberry PI 3, with some sensors attached:

  • 1x DS18b20 temperature sensor
  • 1x DHT22 temperature & humidity sensor
  • 1x PIR motion sensor
  • 1x NOIR PI Camera
  • 1x RF Emitter (for control the previously identified outlets with a RF receiver)

This RPI has the last version of raspbian jessie, and it's running these marvellous open-source projects:

There are other 2 RPI2's running HA ('slave' ones) in my little system, with PIR sensors, DHT22 sensors and a SenseHat. One RPI also runs MotionEye, handling a local video stream (PI camera) and other video stream from a cheap chinesse IP camera (ESCAM QF001); and the other RPI2 has a pHAT DAC with a speaker attached, and runs MPD and shairport-sync.

In addition, recently I have been creating some automations under the new AppDaemon system of apps, and I find it a bewitching method that doing anything in HA.

Some info about what's here:

  • Notifications by: email, pushbullet account, KODI notifications and the iOS notify component, with video streams, attachments, and actionable notifications) (Home Assistant iOS App in private beta for now)
  • Device tracking by: nmap_tracker, bluetooth_tracker (with internal BT module of RPI 3), and icloud trackers.
  • Cameras: One local NO-IR PI Camera and two more MotionEye streams from other RPI on LAN.
  • Lights: Phillips HUE System, excluded from homebridge (I have a 2º gen Hue bridge which is HomeKit compatible).
  • Switches: 5x/2remote + 3x/2remote RF outlet packs from Etekcity which were extremely cheap and work like a charm sending commands with the RF emitter installed in the RPI. Also, more 'software' switches to do automations and manipulate correctly HA input_booleans with HomeKit (the input_booleans don't update the initial state in the homebrige plugin, bug?), including:
    • A custom_component/switch for turning ON and OFF my main TV, which is connected to the RPI3 with KODI (with OSMC running the script.json-cec add-on) --> cecswitch platform.
    • A WOL switch for my Synology NAS.
    • command_line switches for turning ON|OFF and getting status for Hyperion in KODI RPI and Motion detection on video streams.
  • KODI: Control the KODI instance which is running 24/7 in another dedicated RPI 3, connected to the TV+HomeCinema kit, and making as AirPlay receiver, DVBT tuner & recorder, and main media player for movies and tv shows.
  • MPD: MPD + Mopidy player in one RPI2 in the bedroom, also working as AirPlay receiver with shairport-sync.
  • Now I'm playing along with some ESP8266 dev kits to place some sensors in small spaces and talk with HASS via MQTT Mosquitto...
  • Multiple scripts and automations for make my life easier...

The data center of all of these little smart machines is a Synology DS213j NAS with 4TB+3TB storage running 24/7 and serving media to all devices. The MySQL KODI database is in there, so any consumer device views the same.These days I'm testing to move the Home Assistant DB to the NAS, with a recorder db_url like: mysql://USER:PASS@NAS_IP/HASSDB. And it's working very well... recorder errors had disappeared and all seems working more fluent.

Screenshots

Some screenshots of the frontend:

Home view

Control view

Alarm clock view

enerPI view

LAN view

Admin view

Alarm view


enerPI iframe

MotionEye iframe

  • 1.superset版本为2.8.1安装后用http访问都可以,启动脚本为: gunicorn -w 4 --timeout 100 -b ip:port --limit-request-line 0 --limit-request-field_size 0 --forwarded-allow-ips="" superset:app,启动后也能正常的访问。但是当用inframe把superset嵌

  • 目前测试环境为win64. 1.先安装pyhon3.7 2.添加环境变量,可以使用python 和 pip 3.开始安装 --pip3 install homeassistant hass --open-ui 更换linux ubuntu 环境测试 下载地址https://ubuntu.com/download 树莓派下测试: PS:测试了两天 终于明白版本不对会造成其他问题。 正常操作: 备份:

  • 当卷中使用的ConfigMap被更新时,所投射的键最终也会被更新。kubelet组件会在每次周期性同步时检查所挂载的ConfigMap是否为最新。 不过,kubelet使用的是其本地的高速缓存来获得ConfigMap的当前值。 ConfigMap既可以通过watch操作实现内容传播(默认形式),也可实现基于TTL的缓存,还可以直接经过所有请求重定向到API服务器。 因此,从ConfigMap被更新

  • **注:**使用service和config前无需引入相关文件; 一、service的使用 1.创建news服务 vscode安装egg.js插件,快捷生成service文件 @file(news.js) const Service = require('egg').Service; class NewsService extends Service { async getNewsLi

  • hdfs-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration>     <property>       <name>d

  •     一般只有在比较就的python代码中才会用到这个config模块,在百度里很难查到这个信息,英文搜索引擎google和bing中能查到。     介绍及下载地址:https://pypi.python.org/pypi/config/0.3.7 转载于:https://www.cnblogs.com/begoogatprogram/p/4635150.html

  • /****************************************Copyright (c)************************************************** **                                  广州致远电子有限公司 ** **                                 http://www

  • 非静态成员变量: 1)private boolean quietmode = true; 设置加载的配置模式,默认为 true,加载解析配置文件的过程中不会打印日志。开发人员的调试变量。 2)private ArrayList<Resource> resources = new ArrayList<Resource>(); 保存了addResource() 方法添加 Configuration 对

  • 出错详情 ************************************************************/ 20/03/11 10:49:09 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT] 20/03/11 10:49:09 INFO namenode.NameNo