state_add
Adds a status block that displays text, icon, and color for each state of a source value in the app, creating a placeholder input when needed.
Instructions
Adds a status block that shows its own text, icon and colour per state in the app, and wires 'source' to I1 (placeholder created if needed). states: [{"wert": 1, "text": "Sunny", "symbol": "sun", "farbe": "#ffc800"}, ...]. compare='gleich': state applies if I1 equals wert; compare='ab': I1 >= wert, checked top to bottom (largest threshold first). Text may contain or <v1.1> (value of I1). default_* applies if no state matches. Room/category default to those of 'source'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page": "<page>",
"title": "<title>",
"source": "<source>",
"states": "<states>"
},
"name": "state_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| room | No | ||
| visu | No | ||
| title | Yes | ||
| source | Yes | ||
| states | Yes | ||
| compare | No | gleich | |
| category | No | ||
| default_icon | No | ||
| default_text | No | ||
| default_color | No |