hhyhxc13 发表于 2018-11-18 19:31:36

学无止境,可TM 前面学的都忘了!!

maxims 发表于 2018-11-18 20:50:30

看看,怎么搞。刚好我也没有ipv4公网ip

riyue0000 发表于 2018-11-18 22:15:33

本帖最后由 riyue0000 于 2018-11-18 22:19 编辑

2018-11-18 22:12:55 ERROR (MainThread) Invalid config for : required key not provided @ data['sub_domain']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/sensor.aliddns/
access_key_secret 核对了啊没问题啊

三木 发表于 2018-11-18 22:34:23

riyue0000 发表于 2018-11-18 22:15
2018-11-18 22:12:55 ERROR (MainThread) Invalid config for : r ...

sub_domain没有

riyue0000 发表于 2018-11-18 22:44:04

2018-11-18 22:28:11 ERROR (MainThread) <urlopen error Network is unreachable>
2018-11-18 22:28:11 ERROR (MainThread) aliddns: Error on device update!
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 347, in async_device_update
    await self.async_update()
File "/data/data/com.termux/files/usr/lib/python3.7/asyncio/coroutines.py", line 120, in coro
    res = func(*args, **kw)
File "/data/data/com.termux/files/home/.homeassistant/custom_components/sensor/aliddns.py", line 252, in async_update
    rc_value = self.local_ip(self.Aliyun_API_Type)
File "/data/data/com.termux/files/home/.homeassistant/custom_components/sensor/aliddns.py", line 188, in local_ip
    return str(self.public_v6(), encoding = "utf8")
TypeError: decoding to str: need a bytes-like object, NoneType found

楼主 路由器的设置 看不懂啊

三木 发表于 2018-11-18 23:14:35

riyue0000 发表于 2018-11-18 22:44
2018-11-18 22:28:11 ERROR (MainThread)
2018-11-18 22:28:11 ERROR ...
如果是docker需要host网络,首先确保你宿主机已经获得公网ipv6地址

waitshare 发表于 2018-11-19 20:06:33


学习大神

riyue0000 发表于 2018-11-19 21:17:38

本帖最后由 riyue0000 于 2018-11-20 14:14 编辑

platform: aliddns
access_key_id: *****
access_key_secret: ****
domain:    .top
sub_domain: www
type: AAAA
line: default

http:
# Secrets are defined in the file secrets.yaml
   api_password: l****
   # trusted_networks:   #//免密登陆白名单,建议添加内网地址
   # - 127.0.0.1
   # - ::1
   # - 192.168.16.0/254
    base_url: www.   .top
   # //访问地址,填入DDNS 中设置的网址
    ssl_certificate: /data/data/com.termux/files/home/.homeassistant/top.pem
   # //公钥文件地址,注意放在有读取权限的文件夹
    ssl_key: /data/data/com.termux/files/home/.homeassistant/top.key
   # //私钥文件地址,注意放在有读取权限的文件夹

插件已经能够正常运行,也能采集到IPV6但还是不能访问域名

路由器控制台输入后 没反应把防火墙关掉也不能访问

楼主求帮助

冰冰0809 发表于 2018-11-19 21:24:38

谢谢分享

三木 发表于 2018-11-19 22:25:07

riyue0000 发表于 2018-11-19 21:17
platform: aliddns
access_key_id: *****
access_key_secret: ****


防火墙关了好像没用,要开端口才行
页: 1 [2] 3 4 5 6 7 8 9 10 11
查看完整版本: 通过IPV6实现外网访问hass服务#阿里云DDNS插件&IPV6解析