def METHOD_NAME(self) -> None:
    """Set initial state topics."""
    for camera_name, camera in self.config.cameras.items():
        self.publish(
            f"{camera_name}/recordings/state",
            "ON" if camera.record.enabled_in_config else "OFF",
            retain=True,
        )
        self.publish(
            f"{camera_name}/snapshots/state",
            "ON" if camera.snapshots.enabled else "OFF",
            retain=True,
        )
        self.publish(
            f"{camera_name}/audio/state",
            "ON" if camera.audio.enabled_in_config else "OFF",
            retain=True,
        )
        self.publish(
            f"{camera_name}/detect/state",
            "ON" if camera.detect.enabled else "OFF",
            retain=True,
        )
        self.publish(
            f"{camera_name}/motion/state",
            "ON",
            retain=True,
        )
        self.publish(
            f"{camera_name}/improve_contrast/state",
            "ON" if camera.motion.improve_contrast else "OFF",  # type: ignore[union-attr]
            retain=True,
        )
        self.publish(
            f"{camera_name}/ptz_autotracker/state",
            "ON" if camera.onvif.autotracking.enabled else "OFF",
            retain=True,
        )
        self.publish(
            f"{camera_name}/motion_threshold/state",
            camera.motion.threshold,  # type: ignore[union-attr]
            retain=True,
        )
        self.publish(
            f"{camera_name}/motion_contour_area/state",
            camera.motion.contour_area,  # type: ignore[union-attr]
            retain=True,
        )
        self.publish(
            f"{camera_name}/motion",
            "OFF",
            retain=False,
        )
    self.publish("available", "online", retain=True)