Home Assistant¶
- class nirahmq.components.AlarmControlPanel[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(value: AlarmControlPanelState) None[source]¶
- code: str | AlarmControlPanelCode¶
- command_callback: ComponentCallback[AlarmControlPanel]¶
- command_topic: CommandTopic¶
- state_topic: StateTopic¶
- supported_features: list[AlarmControlPanelFeature]¶
- class nirahmq.components.BinarySensor[source]¶
Bases:
StatefulComponent,EntityBase- device_class: BinarySensorClass | None¶
- state_topic: StateTopic¶
- class nirahmq.components.Button[source]¶
Bases:
CallableComponent,EntityBase- command_topic: CommandTopic¶
- device_class: ButtonClass | None¶
- class nirahmq.components.Camera[source]¶
Bases:
StatefulComponent,EntityBase- image_encoding: ImageEncoding¶
- topic: StateTopic¶
- class nirahmq.components.Cover[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(state: CoverState) None[source]¶
- command_topic: CommandTopic¶
- device_class: CoverClass | None¶
- position_topic: StateTopic¶
- set_position_topic: CommandTopic¶
- state_topic: StateTopic¶
- tilt_command_topic: CommandTopic¶
- tilt_status_topic: StateTopic¶
- class nirahmq.components.DeviceTracker[source]¶
Bases:
StatefulComponent,BareEntityBase- source_type: DeviceTrackerSource¶
- state_topic: StateTopic¶
- class nirahmq.components.DeviceTrigger[source]¶
Bases:
StatefulComponent,ComponentBase- subtype: DeviceTriggerSubtype | str¶
- topic: StateTopic¶
- type: DeviceTriggerType | str¶
- class nirahmq.components.Event[source]¶
Bases:
StatefulComponent,EntityBase- device_class: EventClass¶
- state_topic: StateTopic¶
- class nirahmq.components.Fan[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- direction_command_topic: CommandTopic¶
- direction_state_topic: StateTopic¶
- oscillation_command_topic: CommandTopic¶
- oscillation_state_topic: StateTopic¶
- percentage_command_topic: CommandTopic¶
- percentage_state_topic: StateTopic¶
- preset_mode_command_topic: CommandTopic¶
- preset_mode_state_topic: StateTopic¶
- state_topic: StateTopic¶
- class nirahmq.components.HVAC[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_action(action: HVACAction) None[source]¶
- set_fan_mode(mode: HVACFanMode | str) None[source]¶
- set_preset_mode(mode: HVACPresetMode | str) None[source]¶
- action_topic: StateTopic¶
- current_humidity_topic: StateTopic¶
- current_temperature_topic: StateTopic¶
- fan_mode_command_topic: CommandTopic¶
- fan_mode_state_topic: StateTopic¶
- fan_modes: list[HVACFanMode | str]¶
- mode_command_topic: CommandTopic¶
- mode_state_topic: StateTopic¶
- power_command_topic: CommandTopic¶
- preset_mode_command_topic: CommandTopic¶
- preset_mode_state_topic: StateTopic¶
- preset_modes: list[HVACPresetMode | str]¶
- swing_horizontal_mode_command_topic: CommandTopic¶
- swing_horizontal_mode_state_topic: StateTopic¶
- swing_mode_command_topic: CommandTopic¶
- swing_mode_state_topic: StateTopic¶
- target_humidity_command_topic: CommandTopic¶
- target_humidity_state_topic: StateTopic¶
- temperature_command_topic: CommandTopic¶
- temperature_high_command_topic: CommandTopic¶
- temperature_high_state_topic: StateTopic¶
- temperature_low_command_topic: CommandTopic¶
- temperature_low_state_topic: StateTopic¶
- temperature_state_topic: StateTopic¶
- temperature_unit: TemperatureUnit¶
- class nirahmq.components.Humidifier[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_action(action: HumidifierAction) None[source]¶
- set_mode(mode: HumidifierMode | str) None[source]¶
- action_topic: StateTopic¶
- command_callback: ComponentCallback[Humidifier]¶
- command_topic: CommandTopic¶
- current_humidity_topic: StateTopic¶
- device_class: HumidifierClass | None¶
- mode_command_callback: ComponentCallback[Humidifier]¶
- mode_command_topic: CommandTopic¶
- mode_state_topic: StateTopic¶
- modes: list[HumidifierMode | str]¶
- state_topic: StateTopic¶
- target_humidity_command_callback: ComponentCallback[Humidifier]¶
- target_humidity_command_topic: CommandTopic¶
- target_humidity_state_topic: StateTopic¶
- class nirahmq.components.Image[source]¶
Bases:
StatefulComponent,EntityBase- image_encoding: ImageEncoding¶
- image_topic: StateTopic¶
- url_topic: StateTopic¶
- class nirahmq.components.LawnMower[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(state: LawnMowerState) None[source]¶
- activity_state_topic: StateTopic¶
- dock_command_topic: CommandTopic¶
- pause_command_topic: CommandTopic¶
- start_mowing_command_topic: CommandTopic¶
- class nirahmq.components.Light[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(state: bool, color_mode: LightColorMode | None = None, color: tuple[int | float, ...] | None = None, brightness: int | None = None, color_temp: int | None = None, effect: str | None = None) None[source]¶
- command_topic: CommandTopic¶
- schema_: Annotated[str, FieldInfo(annotation=NoneType, required=True, alias_priority=2, serialization_alias='schema'), Required]¶
- state_topic: StateTopic¶
- supported_color_modes: list[LightColorMode]¶
- class nirahmq.components.Lock[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- state_topic: StateTopic¶
- class nirahmq.components.Notify[source]¶
Bases:
CallableComponent,EntityBase- command_topic: CommandTopic¶
- class nirahmq.components.Number[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- device_class: NumberClass | None¶
- mode: NumberMode¶
- state_topic: StateTopic¶
- class nirahmq.components.Scene[source]¶
Bases:
CallableComponent,EntityBase- command_topic: CommandTopic¶
- class nirahmq.components.Select[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- state_topic: StateTopic¶
- class nirahmq.components.Sensor[source]¶
Bases:
StatefulComponent,EntityBase- device_class: SensorClass | None¶
- state_class: SensorStateClass¶
- state_topic: StateTopic¶
- class nirahmq.components.Siren[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(state: bool, tone: str | None = None, duration: int | None = None, volume: float | None = None) None[source]¶
- command_topic: CommandTopic¶
- state_topic: StateTopic¶
- class nirahmq.components.Switch[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- device_class: SwitchClass | None¶
- state_topic: StateTopic¶
- class nirahmq.components.TagScanner[source]¶
Bases:
StatefulComponent,ComponentBase- topic: StateTopic¶
- class nirahmq.components.Text[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- command_topic: CommandTopic¶
- pattern: Regex¶
- state_topic: StateTopic¶
- class nirahmq.components.Update[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_state(installed: str, latest: str | None = None, title: str | None = None, summary: str | None = None, url: AnyUrl | None = None, picture: AnyUrl | None = None, in_progress: bool | None = None, percentage: float | None = None) None[source]¶
- command_topic: CommandTopic¶
- device_class: UpdateClass | None¶
- latest_version_topic: StateTopic¶
- release_summary: Annotated[str, StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=None, max_length=255, pattern=None)]¶
- state_topic: StateTopic¶
- class nirahmq.components.Vacuum[source]¶
Bases:
StatefulComponent,CallableComponent,BareEntityBase- set_state(state: VacuumState, battery_level: int | None = None, fan_speed: VacuumFanSpeed | None = None) None[source]¶
- command_topic: CommandTopic¶
- send_command_topic: CommandTopic¶
- set_fan_speed_topic: CommandTopic¶
- state_topic: StateTopic¶
- supported_features: list[VacuumFeature] | VacuumFeature¶
- class nirahmq.components.Valve[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_position(position: int, state: Literal[ValveState.OPENING, ValveState.CLOSING] | None = None) None[source]¶
- set_state(state: ValveState) None[source]¶
- command_topic: CommandTopic¶
- device_class: ValveClass | None¶
- state_topic: StateTopic¶
- class nirahmq.components.WaterHeater[source]¶
Bases:
StatefulComponent,CallableComponent,EntityBase- set_mode(mode: WaterHeaterMode) None[source]¶
- current_temperature_topic: StateTopic¶
- mode_command_callback: ComponentCallback[WaterHeater]¶
- mode_command_topic: CommandTopic¶
- mode_state_topic: StateTopic¶
- modes: list[WaterHeaterMode]¶
- power_command_callback: ComponentCallback[WaterHeater]¶
- power_command_topic: CommandTopic¶
- temperature_command_callback: ComponentCallback[WaterHeater]¶
- temperature_command_topic: CommandTopic¶
- temperature_state_topic: StateTopic¶
- temperature_unit: TemperatureUnit¶