Skip to content

Commit

Permalink
Adjust temperature step for target temperature based on temperature s…
Browse files Browse the repository at this point in the history
…cale (#89)
  • Loading branch information
nlindn authored Aug 26, 2024
1 parent e4ee94e commit a424922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exe/bwa_mqtt_bridge
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,14 @@ class MQTTBridge
if @bwa.temperature_scale == :celsius
@homie["spa"]["current-temperature"].format = 0..42
@homie["spa"]["target-temperature"].format = 10..40
@homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer", step: 0.5)
else
@homie["spa"]["current-temperature"].format = 32..108
@homie["spa"]["target-temperature"].format = 50..106
@homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer", step: 1)
end

@homie["spa"]["current-temperature"].hass_sensor(device_class: :temperature)
@homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer")
end
end

Expand Down

0 comments on commit a424922

Please sign in to comment.