Saltar al contenido principal

Persons

Currently, 2 persons are simulated for the household. The presence control is carried out here via the ping command of the operating system. The IP address of the person's smartphone is 'pinged' in the home network. pinged' in the home network.
You can also adjust the picture and the displayed name for the persons.

Note

The presence detection via the ping method is only one possibility. There are also other methods. You can find more [information] on the HomeAssistant homepage or in the Internet forums.

Adjust IP address

First of all, the IP address of the Smartphones must be made known to HomeAssistant. To do this, go to the Edit mode of HomeAssistant via this icon on the 'Home' page of the Dashboard:

Edit

In the menu on the left, select File Editor, then the icon Open File.

Edit

and select the file configuration.yaml. There you will see the section device_tracker and enter the IP addresses there.

configuration.yaml
device_tracker:
- platform: ping
hosts:
person1_phone: 192.168.98.73
person2_phone: 192.168.98.99

Then you have to save the file.

Adjusting the image

The image is also adjusted via the file configuration.yaml. Open the file as described above and adjust this section:

configuration.yaml
customize:
person.ha_smartbuddy:
entity_picture:"/local/Person1.jpg"
person.person_2:
entity_picture: "/local/Person2.jpg"

Upload picture

The pictures still have to be uploaded from your device to the SmartBuddy.
This can also be done in the File Editor. First select the folder www. Then you can upload the pictures via the upload icon.

Edit

Adjust name

To do this, go into the edit mode of HomeAssistant via this icon on the 'Home' page of the dashboard:

Edit

This time we also have to activate the Configure User Interface mode with the 3 vertical dots in the upper right corner.
Now an additional field Edit appears on each map. Click on it and this window appears:

Edit

Here you can rename the name for the persons.

Note

After each change to the configuraion.yaml file, HomeAssistant should be restarted. To do this, go to the Settings/System menu and find the Restart button at the top right.