neckyaan

Results 15 comments of neckyaan

https://github.com/home-assistant/core/issues/74276

参见https://github.com/Yonsm/ZhiBot/issues/3 的解决方案

后台报错如下: 2021-03-09 21:49:26 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/home/homeassistant/.homeassistant/custom_components/hacs/operational/reload.py", line 10, in async_reload_entry await async_setup_entry(hass, config_entry) File "/home/homeassistant/.homeassistant/custom_components/hacs/operational/setup.py",...

TypeError: async_create_refresh_token() takes from 2 to 7 positional arguments but 8 were given

最终解决方案:安装nginx,配置用nginx作https代理回落hass,hass不用ssl,直接用http。

参见https://github.com/Yonsm/ZhiBot/issues/3 的解决方案

我跟踪了下日志,发现除了上面能量保存要写flash外,switchRelay也会经常写flash ,最夸张的是我插了个400w左右的电器,每一分钟就要写一次flash.至于开关状态,由homeassistant负责管理,完全没必要写在flash中。我的临时解决方案是把563行以下的内容: if (isSave && config.power_on_state > 0) { bitWrite(config.last_state, ch, isOn); bitSet(operationFlag, 1); Config::delaySaveConfig(10) } 改写成以下内容: if (isSave && config.power_on_state > 0) { //我改了参数,operationFlag为1会产生1分钟写一次falsh,并注销了Config::delaySaveConfig(10); bitWrite(config.last_state, ch, isOn); bitSet(operationFlag, 0);...

https://github.com/neckyaan/esp_dc1/releases/download/2020.07.11.2000/dc1_20230108.bin

最简单直接的方法:下载安装个微软的vscode。在vscode中安装插件:platformio,再在vscode中选择文件-打开文件夹-选择下载后解压缩后的项目文件夹,然后等待一会,platformio安装项目所需要的环境,完成后就可以编译了。

Bind zig device to mqtt service through zig2mqtt, it should be controllable