Hi Juraj,
First of all, thank you for your hard work. However, I am having a bit of difficulties in getting my buttons for moving the camera to a different preset to work. This is how I had it in the previous version:
type: button
name: Living Room
icon: mdi:arrow-up-bold-outline
tap_action:
action: call-service
service: tapo_control.ptz
service_data:
entity_id: camera.tapio_hd
preset: 1
I have tried to model the example given in code examples and come up with this:
type: button
name: Living Room
icon: mdi:arrow-left-bold-outline
tap_action:
action: select.select_option
data:
option: 2
target:
entity_id: select.tapio_move_to_preset
However, pressing the new button does not do anything. In the Github example the ‘option’ variable was set to ‘Room’. Does this mean I need to use something else than ID values of the presets? If so, are these the same names as entered in the Tapo app? Tried entering ‘Living Room’ into the option as well, without success.
I am glad to help your examples by submitting an example of how to simply move the camera to a preset, once I have this figured out myself. I do have several years of experience with HA tinkering, but this ‘select_option’ pattern is something new to me.