The whole process of smart home linkage configuration
Voice control of smart devices can be realized through the HASS plug-in, which is divided into three steps:
- Preparation of preconditions::
1. Ensure that Home Assistant has the API enabled (configuration file)configuration.yaml
(Added):api:
2. Creation of long-term access tokens - Plug-in Configuration::
existconfig.yml
Add a HASS configuration segment to thehass:
enable: true
host: http://192.168.x.x:8123
token: "your_long_lived_token" - Device naming conventions::
Use "Room + Device" in HA (e.g. "Living room overhead light"), and voice commands can be triggered by saying "Turn on the living room overhead light" directly. This can be done byservices developer tool
Tests that the entity ID is correct.
Advanced Usage: 1) Setting up Scenes in HA to invoke complex operations by voice; 2) Developing custom plug-ins to handle device-specific commands. Check firewall settings and network accessibility in case of connection problems.
This answer comes from the articlewukong-robot: a smart speaker project to create personalized Chinese voice conversationsThe