hydraulic brakes

This commit is contained in:
legop3
2026-04-25 20:45:54 -04:00
parent 41bbd7bd98
commit 3a5c14412d
2 changed files with 11 additions and 3 deletions
+3 -1
View File
@@ -27,6 +27,8 @@ const triggerRuntime = new Map(); // triggerId -> { lastFiredAt, lastState, last
const HA_BUTTON_EVENT_TYPE = 'ha.button.action';
const LIGHT_IDLE_OFF_MS = 2 * 60 * 1000;
const DEFAULT_WHITE_KELVIN = 4000;
// Rover daemon uses inverted semantics: action "on" powers IR LEDs, which means nightVisionOn=false.
const NIGHT_VISION_DISABLE_ACTION = 'on';
let connection = null;
let unsubscribeEntities = null;
@@ -206,7 +208,7 @@ function turnOffAllRoverNightVision() {
try {
issueCommand(record.id, {
type: 'nightVision',
nightVision: { action: 'off' },
nightVision: { action: NIGHT_VISION_DISABLE_ACTION },
});
} catch (err) {
failed += 1;