mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
better RGB light stuff, simpler on the frontend.
This commit is contained in:
@@ -167,8 +167,10 @@ export function SessionProvider({ children }) {
|
||||
homeAssistantToggle: (entityId) => emitWithAck('homeAssistant:toggle', { entityId }),
|
||||
homeAssistantSetState: (entityId, state) =>
|
||||
emitWithAck('homeAssistant:setState', { entityId, state }),
|
||||
homeAssistantSetLightColor: (entityId, rgbColor) =>
|
||||
emitWithAck('homeAssistant:lightColor', { entityId, rgbColor }),
|
||||
// The browser deals in CSS-friendly hex strings; the server converts that
|
||||
// to Home Assistant's rgb_color service payload.
|
||||
homeAssistantSetLightColor: (entityId, colorHex) =>
|
||||
emitWithAck('homeAssistant:lightColor', { entityId, colorHex }),
|
||||
homeAssistantSetLightWhite: (entityId) =>
|
||||
emitWithAck('homeAssistant:lightWhite', { entityId }),
|
||||
neatoStart: () => emitWithAck('neato:start'),
|
||||
|
||||
Reference in New Issue
Block a user