Spaces:
Runtime error
Runtime error
Update agents/live/system_message.md
Browse files
agents/live/system_message.md
CHANGED
|
@@ -18,7 +18,7 @@ For multi-asset IN lists: `WHERE REPLACE(LOWER(a.name), ' ', '') IN ('name1', 'n
|
|
| 18 |
|
| 19 |
### SCENARIOS
|
| 20 |
**Scenario A: Live Values**
|
| 21 |
-
`SELECT a.name, COALESCE(TO_TIMESTAMP((a.attributes->'data'->>'timestamp')::numeric / 1000), NOW()) + INTERVAL '3 hours' AS local_time, (a.attributes->'data'->'value') AS sensor_data FROM openremote.asset a WHERE REPLACE(LOWER(a.name), ' ', '') = REPLACE(LOWER('[Name]'), ' ', '') ORDER BY a.version DESC LIMIT 1;`
|
| 22 |
|
| 23 |
**Scenario H: Tank Levels**
|
| 24 |
Read pre-computed `current_level_ft`, `percentage_filled`, `max_ft`. DO NOT recalculate.
|
|
|
|
| 18 |
|
| 19 |
### SCENARIOS
|
| 20 |
**Scenario A: Live Values**
|
| 21 |
+
`SELECT a.name, COALESCE(TO_TIMESTAMP((a.attributes::jsonb->'data'->>'timestamp')::numeric / 1000), NOW()) + INTERVAL '3 hours' AS local_time, (a.attributes::jsonb->'data'->'value') AS sensor_data FROM openremote.asset a WHERE REPLACE(LOWER(a.name), ' ', '') = REPLACE(LOWER('[Name]'), ' ', '') ORDER BY a.version DESC LIMIT 1;`
|
| 22 |
|
| 23 |
**Scenario H: Tank Levels**
|
| 24 |
Read pre-computed `current_level_ft`, `percentage_filled`, `max_ft`. DO NOT recalculate.
|