From 171aaea6fb200c30556486cd2f9dd86ba03a242b Mon Sep 17 00:00:00 2001 From: MIkram7 <72929177+MIkram7@users.noreply.github.com> Date: Thu, 10 Oct 2024 22:08:20 +0100 Subject: [PATCH] feat(add): SLR1d (#8105) * Add support for Hive SLR1d Receiver * Run prettier * Resolve suggestions * Update src/devices/hive.ts --------- Co-authored-by: Koen Kanters --- src/devices/hive.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/devices/hive.ts b/src/devices/hive.ts index 386a926d7b1a3..081feb7d1a49c 100644 --- a/src/devices/hive.ts +++ b/src/devices/hive.ts @@ -333,6 +333,46 @@ const definitions: DefinitionWithExtend[] = [ await reporting.thermostatTemperatureSetpointHoldDuration(endpoint); }, }, + { + zigbeeModel: ['SLR1d'], + model: 'SLR1d', + vendor: 'Hive', + description: 'Single channel receiver', + fromZigbee: [fz.thermostat, fz.thermostat_weekly_schedule], + toZigbee: [ + tz.thermostat_local_temperature, + tz.thermostat_system_mode, + tz.thermostat_running_state, + tz.thermostat_occupied_heating_setpoint, + tz.thermostat_control_sequence_of_operation, + tz.thermostat_weekly_schedule, + tz.thermostat_clear_weekly_schedule, + tz.thermostat_temperature_setpoint_hold, + tz.thermostat_temperature_setpoint_hold_duration, + ], + exposes: [ + e + .climate() + .withSetpoint('occupied_heating_setpoint', 5, 32, 0.5) + .withLocalTemperature() + .withSystemMode(['off', 'auto', 'heat']) + .withRunningState(['idle', 'heat']), + e + .binary('temperature_setpoint_hold', ea.ALL, true, false) + .withDescription( + 'Prevent changes. `false` = run normally. `true` = prevent from making changes.' + + ' Must be set to `false` when system_mode = off or `true` for heat', + ), + e + .numeric('temperature_setpoint_hold_duration', ea.ALL) + .withValueMin(0) + .withValueMax(65535) + .withDescription( + 'Period in minutes for which the setpoint hold will be active. 65535 = attribute not' + + ' used. 0 to 360 to match the remote display', + ), + ], + }, { zigbeeModel: ['SLR2'], model: 'SLR2',