Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/loader.py", line 142, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/notify/serverchan.py", line 5, in <module>
from fake_useragent import UserAgent
ModuleNotFoundError: No module named 'fake_useragent'
- alias: If Home Door open then send weixin
trigger:
platform: state
entity_id: binary_sensor.door_window_sensor_158d000xxxx991
from: 'off'
to: 'on'
action:
- service: notify.weixin
data:
title: 'Test from MAPGPS'
message: 'Home Door opened 家门打开!'