Skip to content

Commit

Permalink
Merge pull request #98 from peribeir/peribeir/issue93
Browse files Browse the repository at this point in the history
DuoFern-Sonnen-Windsensor 9499 - Support Windsensor
  • Loading branch information
peribeir authored Nov 20, 2023
2 parents 7021fe1 + 39f3959 commit 67b82be
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ The integration should work with the following devices (tested devices are marke
- Tested on DuoFern 9485 wireless radiator thermostat
- **DuoFern Smoke Alarm Device (DN: 32001664)**
- Tested on DuoFern 9481 Wireless Smoke detector
- **DuoFern Sun/Wind Sensor (DN:32004464)**
- Tested on DuoFern sun/wind sensor 9499

## Switches
- DuoFern Switch actuator (DN:35001164)
Expand Down
16 changes: 16 additions & 0 deletions custom_components/rademacher/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ async def async_setup_entry(hass, config_entry: ConfigEntry, async_add_entities)
device_class=BinarySensorDeviceClass.LIGHT,
)
)
if device.has_wind_detection:
_LOGGER.info(
"Found Wind Detection Sensor for Device ID: %s", device.did
)
new_entities.append(
HomePilotBinarySensorEntity(
coordinator=coordinator,
device=device,
id_suffix="wind_detect",
name_suffix="Wind Detection",
value_attr="wind_detection_value",
device_class=None,
icon_off="mdi:weather-windy",
icon_on="mdi:weather-windy",
)
)
if device.has_contact_state and device.did not in ternary_contact_sensors:
_LOGGER.info("Found Contact Sensor for Device ID: %s", device.did)
new_entities.append(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/rademacher/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"integration_type": "hub",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/peribeir/homeassistant-rademacher/issues",
"requirements": ["pyrademacher==0.11.1"],
"version": "2.0"
"requirements": ["pyrademacher==0.11.2"],
"version": "2.0.1"
}

0 comments on commit 67b82be

Please sign in to comment.