@chazepps/homebridge-hejhome
Version:
The Hejhome plugin allows you to access your Hejhome device(s) from HomeKit.
9 lines • 333 B
JavaScript
import { hejRequest } from './request.js';
export const getRooms = async (platform, familyId) => {
if (!platform.token) {
throw new Error('Failed to retrieve token');
}
const { result } = await hejRequest(platform, 'GET', `dashboard/rooms/${familyId}`);
return result;
};
//# sourceMappingURL=get_rooms.js.map