tijsverkoyen / Home-Assistant-BrinkRenoventHR

MIT License
4 stars 0 forks source link

Bypass always displays as "Unknown" #3

Open vvhillo opened 1 month ago

vvhillo commented 1 month ago

In Home Assistant the value for the Baypass is always parsed as "Unknown". The value is 0, 1 or 2 but it cant match the attributes: bypass valve shut, bypass valve automatic, input at minimum.

It seems the enum value does not work in the .ino file:

 entity["dev_cla"] = "enum";
  entity["ops"][0] = "bypass valve shut";
  entity["ops"][1] = "bypass valve automatic";
  entity["ops"][2] = "input at minimum";
  entity["uniq_id"] = "brink_bypass_status";
  entity["name"] = "Bypass Status";
  entity["stat_t"] = "brink/bp/get";
  MqttPublishAutoDiscoveryMessage("homeassistant/sensor/brink_bypass_status/config", entity);

MQTT log in HA:

2024-09-27 23:01:24.690 DEBUG (MainThread) [homeassistant.components.mqtt.models] Rendering incoming payload '0' with variables {'entity_id': 'sensor.brink_renovent_hr_beneden_bypass_status', 'name': 'Bypass Status', 'this': <template TemplateStateFromEntityId(sensor.brink_renovent_hr_beneden_bypass_status)>} with default value 'default' and Template<template=({{ value_json }}) renders=6>
2024-09-27 23:01:24.690 WARNING (MainThread) [homeassistant.components.mqtt.sensor] Ignoring invalid option received on topic 'brink2/bp/get', got '0', allowed: bypass valve shut, bypass valve automatic, input at minimum

screenshot:

image
tijsverkoyen commented 1 month ago

@vvhillo In my installation there is something wrong with the bypass itself. It should be a "firmware" bug. But I don't know an installer who can fix this. So I was not able to test this.