Skip to content

Commit

Permalink
tag zone ambient temp HASS sensor with device_class
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Apr 4, 2022
1 parent 6523e2e commit 808b5c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
waterfurnace_aurora (1.4.5)
waterfurnace_aurora (1.4.6)
ccutrer-serialport (~> 1.0)
mqtt-homeassistant (~> 0.1, >= 0.1.3)
net-telnet-rfc2217 (~> 1.0, >= 1.0.1)
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ruby:2.7
ENV WATERFURNACE_AURORA_VERSION 1.4.5
ENV WATERFURNACE_AURORA_VERSION 1.4.6
ENV TTY=/dev/ttyUSB0
ENV MQTT=mqtt://localhost
RUN gem install waterfurnace_aurora -v ${WATERFURNACE_AURORA_VERSION}
Expand Down
5 changes: 3 additions & 2 deletions exe/aurora_mqtt_bridge
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ web_aid_tool = nil
device_name = "WaterFurnace"

options = OptionParser.new do |opts|
opts.banner = "Usage: aurora_mqtt_bridge /path/to/serial/port [options]"
opts.banner = "Usage: aurora_mqtt_bridge /path/to/serial/port mqtt://uri/ [options]"

opts.on("--device-name DEVICENAME", "Give a descriptive name to your device") { |v| device_name = v }
opts.on("--debug-modbus", "Print actual protocol bytes") { debug_modbus = true }
Expand Down Expand Up @@ -787,7 +787,8 @@ class MQTTBridge
:float,
zone.ambient_temperature,
unit: "°F",
hass: { sensor: { state_class: :measurement } })
hass: { sensor: { device_class: :temperature,
state_class: :measurement } })
node.property("heating-target-temperature",
"Heating Target Temperature",
:integer,
Expand Down
2 changes: 1 addition & 1 deletion lib/aurora/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Aurora
VERSION = "1.4.5"
VERSION = "1.4.6"
end

0 comments on commit 808b5c6

Please sign in to comment.