e8f2b5e528
The set_leds service handler is already pass-through, so the new
server-side defaults (start=0, length=rest-of-strip) work with no
code change. Refresh the field descriptions in services.yaml and
strings.json so the UI surfaces the simpler {"mode","color"} payload.
127 lines
3.1 KiB
JSON
127 lines
3.1 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Set up LED Screen Controller",
|
|
"description": "Enter the URL and API key for your LED Screen Controller server.",
|
|
"data": {
|
|
"server_name": "Server Name",
|
|
"server_url": "Server URL",
|
|
"api_key": "API Key"
|
|
},
|
|
"data_description": {
|
|
"server_name": "Display name for this server in Home Assistant",
|
|
"server_url": "URL of your LED Screen Controller server (e.g., http://192.168.1.100:8080)",
|
|
"api_key": "API key from your server's configuration file"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "Failed to connect to server.",
|
|
"invalid_api_key": "Invalid API key.",
|
|
"unknown": "Unexpected error occurred."
|
|
},
|
|
"abort": {
|
|
"already_configured": "This server is already configured."
|
|
}
|
|
},
|
|
"entity": {
|
|
"button": {
|
|
"activate_scene": {
|
|
"name": "{scene_name}"
|
|
},
|
|
"sync_clock_reset": {
|
|
"name": "Reset"
|
|
}
|
|
},
|
|
"light": {
|
|
"api_input_light": {
|
|
"name": "Light"
|
|
}
|
|
},
|
|
"switch": {
|
|
"processing": {
|
|
"name": "Processing"
|
|
},
|
|
"sync_clock_running": {
|
|
"name": "Running"
|
|
}
|
|
},
|
|
"sensor": {
|
|
"fps": {
|
|
"name": "FPS"
|
|
},
|
|
"status": {
|
|
"name": "Status",
|
|
"state": {
|
|
"processing": "Processing",
|
|
"idle": "Idle",
|
|
"error": "Error",
|
|
"unavailable": "Unavailable"
|
|
}
|
|
},
|
|
"mapped_lights": {
|
|
"name": "Mapped Lights"
|
|
},
|
|
"sync_clock_elapsed": {
|
|
"name": "Elapsed Time"
|
|
}
|
|
},
|
|
"number": {
|
|
"brightness": {
|
|
"name": "Brightness"
|
|
},
|
|
"ha_light_update_rate": {
|
|
"name": "Update Rate"
|
|
},
|
|
"ha_light_transition": {
|
|
"name": "Transition"
|
|
},
|
|
"ha_light_min_brightness": {
|
|
"name": "Min Brightness"
|
|
},
|
|
"ha_light_color_tolerance": {
|
|
"name": "Color Tolerance"
|
|
},
|
|
"api_input_timeout": {
|
|
"name": "Fallback Timeout"
|
|
},
|
|
"sync_clock_speed": {
|
|
"name": "Speed"
|
|
}
|
|
},
|
|
"select": {
|
|
"color_strip_source": {
|
|
"name": "Color Strip Source"
|
|
},
|
|
"brightness_source": {
|
|
"name": "Brightness Source"
|
|
},
|
|
"api_input_interpolation": {
|
|
"name": "Interpolation",
|
|
"state": {
|
|
"none": "None",
|
|
"linear": "Linear",
|
|
"nearest": "Nearest"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"set_leds": {
|
|
"name": "Set LEDs",
|
|
"description": "Push segment data to an api_input color strip source.",
|
|
"fields": {
|
|
"source_id": {
|
|
"name": "Source ID",
|
|
"description": "The api_input CSS source ID (e.g., css_abc12345)."
|
|
},
|
|
"segments": {
|
|
"name": "Segments",
|
|
"description": "List of segment objects. start and length are optional (default to 0 and the rest of the strip); mode is one of solid/per_pixel/gradient with color or colors."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|