# Unifi binding resets the host property value each time I open the bridge settings

**URL:** <https://community.openhab.org/t/unifi-binding-resets-the-host-property-value-each-time-i-open-the-bridge-settings/131202>\
**Category:** Bindings\
**Tags:** mqtt, unifi\
**Created:** [January 5, 2022, 12:42pm UTC](https://community.openhab.org/t/unifi-binding-resets-the-host-property-value-each-time-i-open-the-bridge-settings/131202 "2022-01-05T12:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![franks](https://community.openhab.org/user_avatar/community.openhab.org/franks/32/32317_2.png) [@franks](https://community.openhab.org/u/franks)\
**Post date:** [January 5, 2022, 12:42pm UTC](https://community.openhab.org/t/unifi-binding-resets-the-host-property-value-each-time-i-open-the-bridge-settings/131202/1 "2022-01-05T12:42:13Z")

</div>

# Prerequisites

I’ve installed the UniFi binding and created the bridge thing using the following properties:

```yaml
UID: unifi:controller:5eba85627e
label: UniFi Controller
thingTypeUID: unifi:controller
configuration:
  host: unifi.my.internal.domain
  refresh: 10
  password: *
  unifios: false
  port: 443
  username: *
location: Technikraum

```

After saving the bridge thing properties, it went online as expected.

# Problem description

When I now open the bridge properties again, the `host` property is automatically changed from `unifi.my.internal.domain` to `mqtt.my.internal.domain`. Whereas `unifi` is the hostname of my unifi controller and `mqtt` is the hostname of my MQTT broker. That value is used by the MQTT binding also installed in openHAB.

The configuration then looks like:

```yaml
UID: unifi:controller:5eba85627e
label: UniFi Controller
thingTypeUID: unifi:controller
configuration:
  host: mqtt.my.internal.domain
  refresh: 10
  password: *
  unifios: false
  port: 443
  username: *
location: Technikraum

```

If I leave try to leave the page the UI tells me:

Changes have not been saved  
Do you want to leave this page without saving?

I’ve also disabled the auto fill feature of my browser just to make sure, that this is not coming from my browser.

I guess that this is not the expected behavior, but I cannot tell if this is an error in one of the two bindings or simply in the UI.

# My Environment

- Platform information:
  - Hardware: ASUS H87I-PLUS/i3-4130T/16GiB RAM
  - OS: Docker on Ubuntu 20.04.3 LTS
  - Java Runtime Environment: OpenJDK 64-Bit Server VM 11.0.13
  - openHAB version: 3.2.0
