package top.yeij.cyrene.domain.repository

import kotlinx.coroutines.flow.Flow
import top.yeij.cyrene.domain.model.Device

interface IoTRepository {

    fun getDevices(): Flow<List<Device>>

    suspend fun controlDevice(deviceId: String, action: String, value: Any? = null): Result<Device>

    suspend fun refreshDevices()
}
