Skip to content

Commit

Permalink
Fix bugs on new smoke sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Aug 4, 2024
1 parent 0b5ac6e commit 35c9749
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/aqara_gateway/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ async def async_step_zeroconf(self, discovery_info: DiscoveryInfoType):

# Check if already configured
if node_name:
await self.async_set_unique_id(node_name)
await self.async_set_unique_id(f"aqara_gateway_{node_name}")

self._abort_if_unique_id_configured(
updates={CONF_HOST: self._host}
Expand Down
11 changes: 10 additions & 1 deletion custom_components/aqara_gateway/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,17 @@
['8.0.2097', None, 'detect_interval', None],
]
}, {
'lumi.sensor_smoke': ["Honeywell", "Smoke Sensor", "JTYJ-GD-01LM/BW"],
'lumi.sensor_smoke.acn03': ["Aqara", "Smoke Sensor", "JTYJ-GD-02LM/BW"],
'params': [
['0.5.85', 'density', 'smoke density', 'sensor'],
['4.12.85', None, 'mute', 'binary_sensor'],
['8.0.2001', 'battery', 'battery', 'sensor'],
['8.0.2232', 'alarm', 'smoke', 'binary_sensor'],
['8.0.2234', 'alarm', 'error', 'binary_sensor'],
['13.28.85', None, 'smoke level', 'sensor'],
]
}, {
'lumi.sensor_smoke': ["Honeywell", "Smoke Sensor", "JTYJ-GD-01LM/BW"],
'params': [
['0.1.85', 'density', 'smoke density', 'sensor'],
['13.1.85', 'alarm', 'smoke', 'binary_sensor'],
Expand Down

0 comments on commit 35c9749

Please sign in to comment.