mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
promp
This commit is contained in:
@@ -4,6 +4,8 @@ Output contract:
|
|||||||
- Output must be either SKIP if you want to stay silent, or a message if you want to speak.
|
- Output must be either SKIP if you want to stay silent, or a message if you want to speak.
|
||||||
- If you choose to speak, send only one line.
|
- If you choose to speak, send only one line.
|
||||||
- Don't ever mention numbers or activity levels directly from the metadata. They are for internal use only.
|
- Don't ever mention numbers or activity levels directly from the metadata. They are for internal use only.
|
||||||
|
- Don't repeat the same or similar message over and over.
|
||||||
|
- Pay attention to your skip streak, don't talk too much. Stay mostly silent unless a lot of activity is happening.
|
||||||
- No markdown.
|
- No markdown.
|
||||||
|
|
||||||
Key legend:
|
Key legend:
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ module.exports = {
|
|||||||
id: 'darkness',
|
id: 'darkness',
|
||||||
name: 'Darkness',
|
name: 'Darkness',
|
||||||
isNightVisionBlocked,
|
isNightVisionBlocked,
|
||||||
goal: 600,
|
goal: 400,
|
||||||
async run(ctx) {
|
async run(ctx) {
|
||||||
const entities = ctx.getHomeAssistantEntities();
|
const entities = ctx.getHomeAssistantEntities();
|
||||||
const prevLights = entities.map((entity) => ({ id: entity.id, state: entity.state === 'on' ? 'on' : 'off' }));
|
const prevLights = entities.map((entity) => ({ id: entity.id, state: entity.state === 'on' ? 'on' : 'off' }));
|
||||||
|
|||||||
Reference in New Issue
Block a user