You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good afternoon,
Thank you for your incredible work zaubererty.
I implemented the climate home assistant thermostat, I know it needs some adjustments, but it is working, with my salamander lasian audax 8Kw.
This entity can turn on and off;
See the state of the stove, in the modes;
You can select 4 powers of ventilation:
auto equal to 7;
low equal to 1;
medium equal to 3;
high equal to 5.
Which I use in the combustion power.
Also select the temperature, without having to use automations
Create file "climate.py"
`"""The 4Heat integration."""
import logging
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_TEMPERATURE,
PRECISION_TENTHS,
PRECISION_WHOLE,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
STATE_OFF,
STATE_ON,
TEMP_CELSIUS,
CONF_MONITORED_CONDITIONS,
)
from homeassistant.core import HomeAssistant, ServiceCall
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.config_validation import ( # noqa: F401
PLATFORM_SCHEMA,
PLATFORM_SCHEMA_BASE,
make_entity_service_schema,
)
from homeassistant.helpers.entity import Entity, EntityDescription
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.temperature import display_temp as show_temp
Good afternoon,
Thank you for your incredible work zaubererty.
I implemented the climate home assistant thermostat, I know it needs some adjustments, but it is working, with my salamander lasian audax 8Kw.
This entity can turn on and off;
See the state of the stove, in the modes;
You can select 4 powers of ventilation:
Which I use in the combustion power.
Also select the temperature, without having to use automations
Create file "climate.py"
`"""The 4Heat integration."""
import logging
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_TEMPERATURE,
PRECISION_TENTHS,
PRECISION_WHOLE,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
STATE_OFF,
STATE_ON,
TEMP_CELSIUS,
CONF_MONITORED_CONDITIONS,
)
from homeassistant.core import HomeAssistant, ServiceCall
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.config_validation import ( # noqa: F401
PLATFORM_SCHEMA,
PLATFORM_SCHEMA_BASE,
make_entity_service_schema,
)
from homeassistant.helpers.entity import Entity, EntityDescription
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.temperature import display_temp as show_temp
import voluptuous as vol
from homeassistant.components.climate import (
ClimateEntity,
ClimateEntityFeature,
ENTITY_ID_FORMAT,
)
from homeassistant.components.climate.const import (
DEFAULT_MAX_TEMP,
DEFAULT_MIN_TEMP,
ATTR_HVAC_MODE,
ATTR_FAN_MODE,
ATTR_SWING_MODE,
ATTR_CURRENT_TEMPERATURE,
ATTR_CURRENT_HUMIDITY,
FAN_AUTO,
FAN_LOW,
FAN_MEDIUM,
FAN_HIGH,
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
HVACMode,
HVACAction,
)
from homeassistant.const import (
STATE_ON,
PRECISION_HALVES,
PRECISION_TENTHS,
PRECISION_WHOLE,
ATTR_TEMPERATURE,
CONF_NAME,
STATE_UNKNOWN,
STATE_UNAVAILABLE,
CONF_ICON_TEMPLATE,
CONF_ENTITY_PICTURE_TEMPLATE,
CONF_UNIQUE_ID,
)
from homeassistant.helpers.script import Script
from .const import (
MODE_NAMES, SENSOR_TYPES, DOMAIN, DATA_COORDINATOR, MODE_TYPE, ERROR_TYPE, CLIMATE_MODE, ERROR_NAMES
)
from .coordinator import FourHeatDataUpdateCoordinator
_LOGGER = logging.getLogger(name)
async def async_setup_entry(hass, entry, async_add_entities):
"""Add an FourHeat entry."""
coordinator: FourHeatDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id][
DATA_COORDINATOR
]
entities = []
class FourHeatClimate(CoordinatorEntity, ClimateEntity):
"""Representation of a 4Heat device."""
added in the file "const.py"
CLIMATE_MODE = { "State": ["30001", None, ""], "Temperature": ["30006", TEMP_CELSIUS, ""], "Termostate": ["21700", TEMP_CELSIUS, ""], "Combustao": ["20816", TEMP_CELSIUS, ""], }
added in the file "init.py", "def async_setup_entry", before the return True
hass.async_create_task( hass.config_entries.async_forward_entry_setup(entry, "climate") )
The text was updated successfully, but these errors were encountered: