diff --git a/config.yaml.example b/config.yaml.example index 51fef2c..347c004 100755 --- a/config.yaml.example +++ b/config.yaml.example @@ -39,6 +39,7 @@ manager: # mac: 00:11:22:33:44:55 # discovery_temperature_topic: some/sensor/with/temperature # Optional current_temperature_topic for HASS discovery # discovery_temperature_template: "{{ value_json.temperature }}" # Optional current_temperature_template for HASS discovery + # interface: 0 # Optional interface id for bt communication # topic_prefix: thermostat # topic_subscription: thermostat/+/+/set # update_interval: 60 diff --git a/workers/thermostat.py b/workers/thermostat.py index 902b303..2967010 100644 --- a/workers/thermostat.py +++ b/workers/thermostat.py @@ -3,7 +3,7 @@ from workers.base import BaseWorker, retry import logger -REQUIREMENTS = ["python-eq3bt==0.1.11"] +REQUIREMENTS = ["python-eq3bt==0.1.12"] _LOGGER = logger.get(__name__) MODE_HEAT = "heat" @@ -44,7 +44,7 @@ def _setup(self): elif isinstance(obj, dict): self.devices[name] = { "mac": obj["mac"], - "thermostat": Thermostat(obj["mac"]), + "thermostat": Thermostat(obj["mac"], obj.get("interface")), "discovery_temperature_topic": obj.get( "discovery_temperature_topic" ),