Compare commits
No commits in common. "407bc40219efbfd34046c4204338d2cfebe8539f" and "9b9fd1651388e211aed253e4b10d1b553dd7443e" have entirely different histories.
407bc40219
...
9b9fd16513
|
|
@ -69,10 +69,6 @@ INDOOR_HUMIDITY: Final = "indoor_humidity"
|
||||||
UV: Final = "uv"
|
UV: Final = "uv"
|
||||||
CH2_TEMP: Final = "ch2_temp"
|
CH2_TEMP: Final = "ch2_temp"
|
||||||
CH2_HUMIDITY: Final = "ch2_humidity"
|
CH2_HUMIDITY: Final = "ch2_humidity"
|
||||||
CH3_TEMP: Final = "ch3_temp"
|
|
||||||
CH3_HUMIDITY: Final = "ch3_humidity"
|
|
||||||
CH4_TEMP: Final = "ch4_temp"
|
|
||||||
CH4_HUMIDITY: Final = "ch4_humidity"
|
|
||||||
HEAT_INDEX: Final = "heat_index"
|
HEAT_INDEX: Final = "heat_index"
|
||||||
CHILL_INDEX: Final = "chill_index"
|
CHILL_INDEX: Final = "chill_index"
|
||||||
|
|
||||||
|
|
@ -93,20 +89,9 @@ REMAP_ITEMS: dict = {
|
||||||
"UV": UV,
|
"UV": UV,
|
||||||
"soiltempf": CH2_TEMP,
|
"soiltempf": CH2_TEMP,
|
||||||
"soilmoisture": CH2_HUMIDITY,
|
"soilmoisture": CH2_HUMIDITY,
|
||||||
"soiltemp2f": CH3_TEMP,
|
|
||||||
"soilmoisture2": CH3_HUMIDITY,
|
|
||||||
"soiltemp3f": CH4_TEMP,
|
|
||||||
"soilmoisture3": CH4_HUMIDITY,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DISABLED_BY_DEFAULT: Final = [
|
DISABLED_BY_DEFAULT: Final = [CH2_TEMP, CH2_HUMIDITY]
|
||||||
CH2_TEMP,
|
|
||||||
CH2_HUMIDITY,
|
|
||||||
CH3_TEMP,
|
|
||||||
CH3_HUMIDITY,
|
|
||||||
CH4_TEMP,
|
|
||||||
CH4_HUMIDITY,
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
class UnitOfDir(StrEnum):
|
class UnitOfDir(StrEnum):
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@
|
||||||
"issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues",
|
"issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"ssdp": [],
|
"ssdp": [],
|
||||||
"version": "0.1.3.5",
|
"version": "0.1.3.4",
|
||||||
"zeroconf": []
|
"zeroconf": []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,6 @@ from .const import (
|
||||||
BARO_PRESSURE,
|
BARO_PRESSURE,
|
||||||
CH2_HUMIDITY,
|
CH2_HUMIDITY,
|
||||||
CH2_TEMP,
|
CH2_TEMP,
|
||||||
CH3_TEMP,
|
|
||||||
CH3_HUMIDITY,
|
|
||||||
CH4_TEMP,
|
|
||||||
CH4_HUMIDITY,
|
|
||||||
CHILL_INDEX,
|
CHILL_INDEX,
|
||||||
DAILY_RAIN,
|
DAILY_RAIN,
|
||||||
DEW_POINT,
|
DEW_POINT,
|
||||||
|
|
@ -222,44 +218,6 @@ SENSOR_TYPES: tuple[WeatherSensorEntityDescription, ...] = (
|
||||||
translation_key=CH2_HUMIDITY,
|
translation_key=CH2_HUMIDITY,
|
||||||
value_fn=lambda data: cast(int, data),
|
value_fn=lambda data: cast(int, data),
|
||||||
),
|
),
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=CH3_TEMP,
|
|
||||||
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
|
||||||
suggested_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
|
||||||
icon="mdi:weather-sunny",
|
|
||||||
translation_key=CH3_TEMP,
|
|
||||||
value_fn=lambda data: cast(float, data),
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=CH3_HUMIDITY,
|
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
device_class=SensorDeviceClass.HUMIDITY,
|
|
||||||
icon="mdi:weather-sunny",
|
|
||||||
translation_key=CH3_HUMIDITY,
|
|
||||||
value_fn=lambda data: cast(int, data),
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=CH4_TEMP,
|
|
||||||
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
|
||||||
suggested_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
|
||||||
icon="mdi:weather-sunny",
|
|
||||||
translation_key=CH4_TEMP,
|
|
||||||
value_fn=lambda data: cast(float, data),
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=CH4_HUMIDITY,
|
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
device_class=SensorDeviceClass.HUMIDITY,
|
|
||||||
icon="mdi:weather-sunny",
|
|
||||||
translation_key=CH4_HUMIDITY,
|
|
||||||
value_fn=lambda data: cast(int, data),
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
WeatherSensorEntityDescription(
|
||||||
key=HEAT_INDEX,
|
key=HEAT_INDEX,
|
||||||
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,6 @@
|
||||||
"solar_radiation": { "name": "Sluneční osvit" },
|
"solar_radiation": { "name": "Sluneční osvit" },
|
||||||
"ch2_temp": { "name": "Teplota senzoru 2" },
|
"ch2_temp": { "name": "Teplota senzoru 2" },
|
||||||
"ch2_humidity": { "name": "Vlhkost sensoru 2" },
|
"ch2_humidity": { "name": "Vlhkost sensoru 2" },
|
||||||
"ch3_temp": { "name": "Teplota senzoru 3" },
|
|
||||||
"ch3_humidity": { "name": "Vlhkost sensoru 3" },
|
|
||||||
"ch4_temp": { "name": "Teplota senzoru 4" },
|
|
||||||
"ch4_humidity": { "name": "Vlhkost sensoru 4" },
|
|
||||||
"heat_index": { "name": "Tepelný index" },
|
"heat_index": { "name": "Tepelný index" },
|
||||||
"chill_index": { "name": "Pocitová teplota" },
|
"chill_index": { "name": "Pocitová teplota" },
|
||||||
"wind_azimut": {
|
"wind_azimut": {
|
||||||
|
|
|
||||||
|
|
@ -77,10 +77,6 @@
|
||||||
"solar_radiation": { "name": "Solar irradiance" },
|
"solar_radiation": { "name": "Solar irradiance" },
|
||||||
"ch2_temp": { "name": "Channel 2 temperature" },
|
"ch2_temp": { "name": "Channel 2 temperature" },
|
||||||
"ch2_humidity": { "name": "Channel 2 humidity" },
|
"ch2_humidity": { "name": "Channel 2 humidity" },
|
||||||
"ch3_temp": { "name": "Channel 3 temperature" },
|
|
||||||
"ch3_humidity": { "name": "Channel 3 humidity" },
|
|
||||||
"ch4_temp": { "name": "Channel 4 temperature" },
|
|
||||||
"ch4_humidity": { "name": "Channel 4 humidity" },
|
|
||||||
"heat_index": { "name": "Apparent temperature" },
|
"heat_index": { "name": "Apparent temperature" },
|
||||||
"chill_index": { "name": "Wind chill" },
|
"chill_index": { "name": "Wind chill" },
|
||||||
"wind_azimut": {
|
"wind_azimut": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue