Skip to content

Commit 171aaea

Browse files
MIkram7Koenkk
andauthored
feat(add): SLR1d (#8105)
* Add support for Hive SLR1d Receiver * Run prettier * Resolve suggestions * Update src/devices/hive.ts --------- Co-authored-by: Koen Kanters <[email protected]>
1 parent a7a331d commit 171aaea

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/devices/hive.ts

+40
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,46 @@ const definitions: DefinitionWithExtend[] = [
333333
await reporting.thermostatTemperatureSetpointHoldDuration(endpoint);
334334
},
335335
},
336+
{
337+
zigbeeModel: ['SLR1d'],
338+
model: 'SLR1d',
339+
vendor: 'Hive',
340+
description: 'Single channel receiver',
341+
fromZigbee: [fz.thermostat, fz.thermostat_weekly_schedule],
342+
toZigbee: [
343+
tz.thermostat_local_temperature,
344+
tz.thermostat_system_mode,
345+
tz.thermostat_running_state,
346+
tz.thermostat_occupied_heating_setpoint,
347+
tz.thermostat_control_sequence_of_operation,
348+
tz.thermostat_weekly_schedule,
349+
tz.thermostat_clear_weekly_schedule,
350+
tz.thermostat_temperature_setpoint_hold,
351+
tz.thermostat_temperature_setpoint_hold_duration,
352+
],
353+
exposes: [
354+
e
355+
.climate()
356+
.withSetpoint('occupied_heating_setpoint', 5, 32, 0.5)
357+
.withLocalTemperature()
358+
.withSystemMode(['off', 'auto', 'heat'])
359+
.withRunningState(['idle', 'heat']),
360+
e
361+
.binary('temperature_setpoint_hold', ea.ALL, true, false)
362+
.withDescription(
363+
'Prevent changes. `false` = run normally. `true` = prevent from making changes.' +
364+
' Must be set to `false` when system_mode = off or `true` for heat',
365+
),
366+
e
367+
.numeric('temperature_setpoint_hold_duration', ea.ALL)
368+
.withValueMin(0)
369+
.withValueMax(65535)
370+
.withDescription(
371+
'Period in minutes for which the setpoint hold will be active. 65535 = attribute not' +
372+
' used. 0 to 360 to match the remote display',
373+
),
374+
],
375+
},
336376
{
337377
zigbeeModel: ['SLR2'],
338378
model: 'SLR2',

0 commit comments

Comments
 (0)