Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

HA structure to save dictionaries

$
0
0

@Hedgehog57 wrote:

Hello,

I have an IP camera. I want to position it to PTZ presets received from the camera.
Using REST I can get a JSON structure with presets. Now I wat to create something like python dictionary in Home Assistant. For example

{"ptzname": 1,"ptzname2": 2,"ptzname3": 3}

After that I want to call service some service with camera name and “ptzname1” parameter and it will send a REST with a digit “1”.

I can do that creating input_number named “imput_number.ptzname1”, “imput_number.ptzname1”, “imput_number.ptzname1” and so on. But that is not a dynamic configuration. Each time I will create or change PTZpreset in the camera I must modify configuration and make a HA restart.

Is there any option to do so?

Thanks.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>