Skip to content

Commit

Permalink
feat(add): SLR1d (#8105)
Browse files Browse the repository at this point in the history
* Add support for Hive SLR1d Receiver

* Run prettier

* Resolve suggestions

* Update src/devices/hive.ts

---------

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
MIkram7 and Koenkk authored Oct 10, 2024
1 parent a7a331d commit 171aaea
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/devices/hive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 171aaea

Please sign in to comment.