mqtt-homeassistant 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mqtt/home_assistant/version.rb +1 -1
- data/lib/mqtt/home_assistant.rb +25 -0
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ce071c9aff4a9278fd43c312610aef5a9ef11e99452823067dbf4cf6980029
|
4
|
+
data.tar.gz: 47b50acb51c8280f29f80f0c4f918b744ca291b5484af0119d2a4cbed80cf86f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7521c34bad575547c953530311c9111d4d143579139738a158311595b3996b300d22a5ded21d815712bb7bc50916c6b356ad66c3246fcd82d05fdc02ef26ca1
|
7
|
+
data.tar.gz: c50827bcc8264b573d2f0543f5fb3ef6a94d1b3d04146379251a53681816756e8a731377f98b3f2d8df2f2d42e93cc89ddfa713fd91ca9521711a4c95af69664
|
data/lib/mqtt/home_assistant.rb
CHANGED
@@ -15,6 +15,7 @@ module MQTT
|
|
15
15
|
binary_sensor: %i[
|
16
16
|
battery
|
17
17
|
battery_charging
|
18
|
+
carbon_monoxide
|
18
19
|
cold
|
19
20
|
connectivity
|
20
21
|
door
|
@@ -46,33 +47,56 @@ module MQTT
|
|
46
47
|
dehumidifier
|
47
48
|
].freeze,
|
48
49
|
sensor: %i[
|
50
|
+
apparent_power
|
49
51
|
aqi
|
52
|
+
atmospheric_pressure
|
50
53
|
battery
|
51
54
|
carbon_dioxide
|
52
55
|
carbon_monoxide
|
53
56
|
current
|
57
|
+
data_rate
|
58
|
+
data_size
|
54
59
|
date
|
60
|
+
distance
|
61
|
+
duration
|
55
62
|
energy
|
63
|
+
energy_storage
|
64
|
+
enum
|
65
|
+
frequency
|
56
66
|
gas
|
57
67
|
humidity
|
58
68
|
illuminance
|
69
|
+
irradiance
|
70
|
+
moisture
|
59
71
|
monetary
|
60
72
|
nitrogen_dioxide
|
61
73
|
nitrogen_monoxide
|
62
74
|
nitrous_oxide
|
63
75
|
ozone
|
76
|
+
ph
|
64
77
|
pm1
|
65
78
|
pm10
|
66
79
|
pm25
|
67
80
|
power_factor
|
68
81
|
power
|
82
|
+
precipitation
|
83
|
+
precipitation_intensity
|
69
84
|
pressure
|
85
|
+
reactive_power
|
70
86
|
signal_strength
|
87
|
+
sound_pressure
|
88
|
+
speed
|
71
89
|
sulphur_dioxide
|
72
90
|
temperature
|
73
91
|
timestamp
|
74
92
|
volatile_organic_compounds
|
93
|
+
volatile_organic_compounds_parts
|
75
94
|
voltage
|
95
|
+
volume
|
96
|
+
volume_storage
|
97
|
+
water
|
98
|
+
weight
|
99
|
+
wind_speed
|
76
100
|
].freeze
|
77
101
|
}.freeze
|
78
102
|
STATE_CLASSES = %i[measurement total total_increasing].freeze
|
@@ -427,6 +451,7 @@ module MQTT
|
|
427
451
|
entity_category: nil,
|
428
452
|
icon: nil
|
429
453
|
)
|
454
|
+
device_class ||= :enum if property.datatype == :enum
|
430
455
|
if device_class && !DEVICE_CLASSES[:sensor].include?(device_class)
|
431
456
|
raise ArgumentError, "Unrecognized device_class #{device_class.inspect}"
|
432
457
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mqtt-homeassistant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: homie-mqtt
|
@@ -67,33 +67,19 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
70
|
+
name: rubocop-inst
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-performance
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.12'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.12'
|
82
|
+
version: '1.0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rubocop-rake
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|