HomeAssistant测试 服务选:notify.mobile_app_你的app注册名称 代码:service:notify.mobile_app_22011211...
4、重启HA,APP强制退出再登录,在开发者工具——服务中查看是否有notify.mobile_app_<手机名称> ...
alias: 存储空间告警 description: "当存储空间使用率超过90%时发送通知" trigger: - platform: numeric_state entity_id: sensor.ds920plus_volume_1_volume_used above: 90 condition: [] action: - service: notify.mobile_app_iphone data: message: "警告: NAS存储空间使用率已超过90%,请及时清理!" titl...
alias:一小时天气预警trigger:-platform:stateentity_id:-sensor.heweather_rain_warnfrom:"off"to:"on"action:-service:notify.mobile_app_iphone_xr_2data:title:天气预警message:"注意注意!{{state_attr('sensor.heweather_rain_warn', 'states')}} "-service:tts.edge_tts_saydata_template:entity_id:media...
比起说话,“通知”简单一些,也很实用。系统内建了Notify,我们要做的就是加载它,并做好规则。在Configuration.yaml中,加入notify: 如果要在电视上接收“通知”,需要把电视接入HA(homeassistant),以LG电视为例: 电视的IP需要设置为固定IP,并且记录它的mac地址,按照上面格式一并写入。重新启动HA。
service: script.notify_devices data: notify_home_or_away: Both data_notification_icon: mdi:human-greeting-variant notify_title: Example 1 notify_message: Send a persistent notification, that the user can't remove data_group: Example data_tag: Use this tag when you need to remove it ...
raise ServiceNotFound(domain, service) from None homeassistant.exceptions.ServiceNotFound: Action notify.mobile_app_sm_g988b not found {sm_g988b} mobile was renamed to {my_phone} and the {notify.mobile_app_my_phone} call works perfectly but {notify.all_devices} is still using the old na...
Actions, set the type toCall serviceand set theServiceto "notify.mobile_app_your_phone_model". ForServicedata, we need to write our configuration in YAML format, and we will use Jinja2 templating to run some conditional statements. You can find more information ontemplating in Home Assistant....
.git-blame-ignore-revs @home-assistant/core .gitattributes @home-assistant/core .gitignore @home-assistant/core .hadolint.yaml @home-assistant/core .pre-commit-config.yaml @home-assistant/core .prettierignore @home-assistant/core .yamllint @home-assistant/core pyproject.toml @home-assis...
File "/usr/src/homeassistant/homeassistant/components/mobile_app/init.py", line 5, in from homeassistant.components import cloud, notify as hass_notify File "/usr/src/homeassistant/homeassistant/components/cloud/init.py", line 10, in